We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d83798 commit 1ae4724Copy full SHA for 1ae4724
duration-experiment/raschka/nested-cv-py-raschka.py
@@ -169,7 +169,9 @@
169
inner_cv = KFold(n_splits = 2, shuffle = True, random_state = 1)
170
171
# Setting this parameter to the size of the grid tells Random Search to use every grid value once
172
-iter_dict = {'Elastic Net': len(elast_params), 'Random Forest': len(rf_params)}
+elast_iter = len(elast_params)
173
+rf_iter = len(rf_params)
174
+iter_dict = {'Elastic Net': elast_iter, 'Random Forest': rf_iter}
175
176
177
# Setting up multiple RandomSearchCV objects, 1 for each algorithm
0 commit comments