Sklearn, gridsearch: how to print out progress during the execution?

后端 未结 3 1245
自闭症患者
自闭症患者 2021-02-01 11:38

I am using GridSearch from sklearn to optimize parameters of the classifier. There is a lot of data, so the whole process of optimization takes a while

3条回答
  •  庸人自扰
    2021-02-01 12:19

    Set the verbose parameter in GridSearchCV to a positive number (the greater the number the more detail you will get). For instance:

    GridSearchCV(clf, param_grid, cv=cv, scoring='accuracy', verbose=10)  
    

提交回复
热议问题