[IDEA] Result Readability - 02_end_to_end_machine_learning_project.ipynb
- Dominant language
- Jupyter Notebook
- Stars
- 30k
- Forks
- 13.1k
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/ageron/handson-ml2/blob/master/02_end_to_end_machine_learning_project.ipynb)
### 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)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.