Skip to content

Commit

Permalink
an anonymous function which helps to adapt to newer version of scikit…
Browse files Browse the repository at this point in the history
…-learn
  • Loading branch information
Bryan Nguyen committed Oct 3, 2018
1 parent 2d98a17 commit 1b5dafe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions evolutionary_search/cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@ class EvolutionaryAlgorithmSearchCV(BaseSearchCV):
With the statistics of the evolution.
"""

def _run_search(self, evaluate_candidates):
"""
scikit-learn new version introduce a new abstract function hence we have to implement an anonymous function
"""
pass

def __init__(self, estimator, params, scoring=None, cv=4,
refit=True, verbose=False, population_size=50,
gene_mutation_prob=0.1, gene_crossover_prob=0.5,
Expand Down

0 comments on commit 1b5dafe

Please sign in to comment.