Decision Trees — Applied Machine Learning in Python

PHOTO EMBED

Fri Nov 03 2023 07:35:02 GMT+0000 (Coordinated Universal Time)

Saved by @elham469

scores = pd.DataFrame(grid.cv_results_)
scores.plot(x='param_max_leaf_nodes', y='mean_train_score', yerr='std_train_score', ax=plt.gca())
scores.plot(x='param_max_leaf_nodes', y='mean_test_score', yerr='std_test_score', ax=plt.gca())
content_copyCOPY

https://amueller.github.io/aml/02-supervised-learning/08-decision-trees.html