Skip to content

Commit

Permalink
Merge pull request rsteca#58 from dongchirua/master
Browse files Browse the repository at this point in the history
an anonymous function which helps to adapt to newer version of scikit-learn
  • Loading branch information
rsteca authored Oct 4, 2018
2 parents 6468860 + fdd93de commit d02924a
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 d02924a

Please sign in to comment.