Different cross validation score on every run

I am getting different cross validation score everytime I run the code. I want to plot the graph b/w ‘n_estimators’ and score. The plot changes on different runs.

Hey @ankur_shuklauR9, always prefer to use sklearn’s train and test split, with 80:20 being general ratio, being 80% for training and 20% for testing. Now train your trees on that 80% of the data and check score on remaining 20% of data for all the estimators. Now you can plot the said graph.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.