You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion: While performing the train test split use a seed so that when you rerun the code, you get the same splitting. Also, see if the function you are using to split has the option of stratifying the data. If you use sklearn, then it gives you that option. Stratification is necessary while splitting the data in multiclass classification because there may be a possibility that while splitting the majority of some class goes into test/train and hence the opposite (train/test) do not have the appropriate samples of that particular class. Stratification makes sure that the data distributions in both train and test remain the same. You can go through this blog for a detailed understanding: https://towardsdatascience.com/3-things-you-need-to-know-before-you-train-test-split-869dfabb7e50
80, 20 would be a good ratio
The text was updated successfully, but these errors were encountered: