Practical - 5

Aim: Data Pre-processing and text analytics using Orange

what is text analytics?

Text analytics is the automated process of translating large volumes of unstructured text into quantitative data to uncover insights, trends, and patterns
Combined with data visualization tools, this technique enables companies to understand the story behind the numbers and make better decisions.

What is sentiment analysis? 

A sentiment analysis system for text analysis combines natural language processing (NLP) and machine learning techniques to assign weighted sentiment scores to the entities, topics, themes and categories within a sentence or phrase.
It uses natural language processing and machine learning to interpret and classify emotions in subjective data. It is often used in business to detect sentiment in social data, gauge brand reputation, and understand customers.


What is the effect of discretization, continuization, Normalization, Randomization on the data w.r.t. Orange?

Data-set Description:

Here I have taken a Real-Estate data set which gives the information related real-estate:

  • Number of Instances: 506
  • Number of Attributes: 13 continuous attributes (including "class" attribute "MEDV"), 1 binary-valued attribute.
  • Attribute Information: CRIM per capita crime rate by town
  • ZN proportion of residential land zoned for lots over 25,000 sq.ft.
  • INDUS proportion of non-retail business acres per town
  • CHAS Charles River dummy variable (= 1 if tract bounds river; 0 otherwise)
  • NOX nitric oxides concentration (parts per 10 million)
  • RM average number of rooms per dwelling
  • AGE proportion of owner-occupied units built prior to 1940
  • DIS weighted distances to five Boston employment centres
  • RAD index of accessibility to radial highways
  • TAX full-value property-tax rate per $10,000
  • PTRATIO pupil-teacher ratio by town
  • B 1000(Bk - 0.63)^2 where Bk is the proportion of blacks by town
  • LSTAT % lower status of the population
  • MEDV Median value of owner-occupied homes in $1000's



Here is the data of the discretization, continuization, normalization, randomization on Orange tool

Discretization: 

Discretization is the process of transferring continuous functions, models, variables, and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numerical evaluation and implementation on digital computers.
Discretization replaces continuous features with the corresponding categorical features:

Descritization in orage tool using Preprocess vigid

Descritization in orage tool using Python Script

Continuization : 

class Orange.preprocess.Continuize
Given a data table, return a new table in which the discretize attributes are replaced with continuous or removed.

The continuation is a data structure that represents the computational process at a given point in the process's execution; the created data structure can be accessed by the programming language, instead of being hidden in the runtime environment.


Continuization in Orange tool using Preprocess vigid

Continuization in orage tool using Python Script

Normalization:

Normalization is a process to adjust values measured on different scales to a notionally common scale. It is done to evaluate the performance of the candidates on the basis of similar exam parameters and aims to adjust the difficulty level across different shifts of the exam.
Normalization is used to minimize the redundancy from a relation or set of relations. It is also used to eliminate the undesirable characteristics like Insertion, Update and Deletion Anomalies.

In Orange tool
class Orange.preprocess.Normalize(zero_based=True, norm_type=Normalize.NormalizeBySD, transform_class=False, center=True, normalize_datetime=False)[source]
Construct a preprocessor for normalization of features. Given a data table, preprocessor returns a new table in which the continuous attributes are normalized.

Normalization in Orange tool using Preprocess vigid

Normalization in orage tool using Python Script

Randomization:

Randomization in an experiment is where you choose your experimental participants randomly. For example, you might use simple random sampling, where participants names are drawn randomly from a pool where everyone has an even probability of being chosen.

In Orange tool:
class Orange.preprocess.Randomize(rand_type=Randomize.RandomizeClasses, rand_seed=None)[source]
Construct a preprocessor for randomization of classes, attributes and/or metas. Given a data table, preprocessor returns a new table in which the data is shuffled.

Randomization in orage tool using Preprocess vigid

Randomization in orage tool using Python Script


No comments:

Post a Comment