Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sklearn grid search cross validation show progress

# verbose: int
# Controls the verbosity: the higher, the more messages
# >1 : the computation time for each fold and parameter candidate is displayed
# >2 : the score is also displayed
# >3 : the fold, candidate parameter indexes and the starting time of the computation are displayed

GridSearchCV(clf, param_grid, cv=cv, scoring='accuracy', verbose=4) 
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #sklearn #grid #search #cross #validation #show #progress
ADD COMMENT
Topic
Name
1+3 =