Question: Train a baseline model: a ) Import the dataset and load the data b ) Train test split c ) Train a Random Forest Classifier
Train a baseline model:
a Import the dataset and load the data
b Train test split
c Train a Random Forest Classifier
d Predict the test set and calculate the confusion matrix and classification report.
Train a better model with data imbalanced solved:
e Use SMOTE on the train set to balance the dataset
f Train another Random Forest Classifier
g Predict the test set and calculate the confusion matrix and classification report.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
