8000 DOC: Be explicite about what criteria are used in GridSearchCV · seckcoder/scikit-learn@c2680d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2680d8

Browse files
committed
DOC: Be explicite about what criteria are used in GridSearchCV
1 parent 10aba34 commit c2680d8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scikits/learn/grid_search.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ class GridSearchCV(BaseEstimator):
168168
GridSearchCV(n_jobs=1, fit_params={}, loss_func=None, iid=True,
169169
estimator=SVR(kernel='rbf', C=1.0, probability=False, ...
170170
...
171+
172+
Notes
173+
------
174+
175+
The parameters selected are those that maximize the score of the
176+
left out data, unless an explicit score_func is passed in which
177+
case it is used instead. If a loss function loss_func is passed,
178+
it overrides the score functions and is minimized.
179+
171180
"""
172181

173182
def __init__(self, estimator, param_grid, loss_func=None, score_func=None,

0 commit comments

Comments
 (0)
0