iiitl / Classification

Classification
MIT License
0 stars 13 forks source link

Made Correlation and Confusion Matrices for Enhanced Model Evaluation #5 #16

Closed YuwanshB005 closed 8 months ago

YuwanshB005 commented 8 months ago

First i did Data Preprocessing which included handling null values

  1. image

I filled these null values in body and acidity column with their Median values and also removed unnecessary rows

Then i handled Categorical features using Label Encoding

image

Then i did Data Visualisation to get more understanding of data, outliers and Unnecessary columns

I created Co-relationa Matrix to to remove unnecessary Features

image

Then i plotted several plots to get idea of outliers

image

Then i removed the outliers using Interquartile Range (IQR) Method.

image

Then i split my data into training and testing Datasets and used Feature Scaling (Standardisation) to to get all in data between -3 to 3 so that model can perform good

Then i used GridSearchCV on multiple Models To find the best accuracy with best parameters

image image

Afterwards i Predicted to output from my testing dataset and then i made confusion matrix to check where out prediction and real value differs and evaluate the performance of model

image
YuwanshB005 commented 8 months ago

@darshbaxi Please Review

Samcoding5854 commented 8 months ago

Good work. Appreciate the detailed PR description Could have converted the e values to integers in the matrice. There is a parameter to be checked True for this.