handson-ml2
handson-ml2 copied to clipboard
[IDEA] Result Readability - 02_end_to_end_machine_learning_project.ipynb
To improve the readability of which parameter is more efficient in cv_results, I suggest a small adaptation in the code:
Notebook: 02_end_to_end_machine_learning_project
In cell 105
From:
cvres = rnd_search.cv_results_
for mean_score, params in zip(cvres["mean_test_score"], cvres["params"]):
print(np.sqrt(-mean_score), params)
To:
cvres = rnd_search.cv_results_
for rank, mean_score, params in zip(cvres['rank_test_score'], cvres['mean_test_score'], cvres['params']):
print(rank, np.sqrt(-mean_score), params)
Hi @derycck , Thanks for the suggestion! Would you like to submit a PR? If not, I can do it, as you wish.
sure... If you can wait, next monday i could do the PR : )