Skip to content

Silvia l Random Forest - #16

Open
silviagonzalez98 wants to merge 3 commits into
Ironhack-Data-0621-Remote:masterfrom
silviagonzalez98:master
Open

Silvia l Random Forest#16
silviagonzalez98 wants to merge 3 commits into
Ironhack-Data-0621-Remote:masterfrom
silviagonzalez98:master

Conversation

@silviagonzalez98

Copy link
Copy Markdown

No description provided.

@ArabellaCM

Copy link
Copy Markdown

Hi Silvia! I've had a look at your random forest/smote upsampling lab.

It looks like you can use the separate parts of code but putting them together hasn't quite worked out.

Remember SMOTE is a process of upsampling your data when you have an unbalanced data set e.g. in this lab you have:

0    90569
1     4843
Name: TARGET_B, dtype: int64

You have upsampled your training sets but you fitted your model to the imbalanced X_train and y_train (instead of X_train_sm and y_train_sm)

When you have an imbalanced data set always remember to be very wary of high scores. It can be useful to look at a confusion matrix or ROC-AUC curve to see how good your results actually are.

Let me know if you have any more questions about upsampling or checking the results of a classification model. They're both important topics :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants