Skip to content
 
 

Repository files navigation

EXNO:4-DS

AIM:

To read the given data and perform Feature Scaling and Feature Selection process and save the data to a file.

ALGORITHM:

STEP 1:Read the given Data. STEP 2:Clean the Data Set using Data Cleaning Process. STEP 3:Apply Feature Scaling for the feature in the data set. STEP 4:Apply Feature Selection for the feature in the data set. STEP 5:Save the data to the file.

FEATURE SCALING:

  1. Standard Scaler: It is also called Z-score normalization. It calculates the z-score of each value and replaces the value with the calculated Z-score. The features are then rescaled with x̄ =0 and σ=1
  2. MinMaxScaler: It is also referred to as Normalization. The features are scaled between 0 and 1. Here, the mean value remains same as in Standardization, that is,0.
  3. Maximum absolute scaling: Maximum absolute scaling scales the data to its maximum value; that is,it divides every observation by the maximum value of the variable.The result of the preceding transformation is a distribution in which the values vary approximately within the range of -1 to 1.
  4. RobustScaler: RobustScaler transforms the feature vector by subtracting the median and then dividing by the interquartile range (75% value — 25% value).

FEATURE SELECTION:

Feature selection is to find the best set of features that allows one to build useful models. Selecting the best features helps the model to perform well. The feature selection techniques used are: 1.Filter Method 2.Wrapper Method 3.Embedded Method

CODING AND OUTPUT:

Screenshot 2024-11-23 212851 Screenshot 2024-11-23 212914 Screenshot 2024-11-23 212935 Screenshot 2024-11-23 212958 Screenshot 2024-11-23 213018 Screenshot 2024-11-23 213035 Screenshot 2024-11-23 213056 Screenshot 2024-11-23 213112 Screenshot 2024-11-23 213130 Screenshot 2024-11-23 213149 Screenshot 2024-11-23 213207 Screenshot 2024-11-23 213223 Screenshot 2024-11-23 213238

RESULT:

   Thus , Feature Scaling and Feature Selection techniques are performed using the give data set .

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages