Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dislib/model_selection/_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def fit(self, x, y=None, **fit_params):

def train_candidates(self, x, y, **fit_params):
"""Run fit with all sets of parameters.
This method does not generate the scores. By not generating
Comment thread
fjconejero marked this conversation as resolved.
the scores we avoid the syncrhonization of the GridSearch.
It is useful if several GridSearchs are used. To generate the
scores it will be needed to use score function.

Parameters
----------
Expand Down Expand Up @@ -137,6 +141,7 @@ def evaluate_candidates(candidate_params):

def score(self, x=None, y=None, **fit_params):
"""Compute score for the trained sets of parameters.
To compute the score a synchronization is needed.
Comment thread
fjconejero marked this conversation as resolved.

Parameters
----------
Expand Down