Closed karitonov closed 2 years ago
您的邮件已收到,我将会尽快处理,谢谢。王宇凝
https://github.com/amueller/introduction_to_ml_with_python/issues/156#issue-1125129453
This issue is almost the same as above.
https://github.com/amueller/introduction_to_ml_with_python/issues/156#issue-1125129453
The above method is better, so I will withdraw.
plot_grid_search.py
line 20: results = pd.DataFrame(grid_search.cvresults)[15:] line 37-38: plt.xticks(range(len(results)), [str(x).strip("{}").replace("'", "") for x in grid_search.cvresults['params']],
In line 37-38, an error occurs because the length of results and grid_search.cvresults['params']] does not match.
Therefore, the line number 20 is corrected as follows.
And then, add the following rows to some suitable places (For example, after the 41st line.).
Thank you for your cooperation.