Skip to content

Commit

Permalink
Added _check_param_grid
Browse files Browse the repository at this point in the history
Untested, working on web interface.
  • Loading branch information
ryanpeach authored Apr 18, 2017
1 parent 566ff5c commit 5492f1b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions evolutionary_search/cv.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# -*- coding: utf-8 -*-
from __future__ import division

import numpy as np
import random
from deap import base, creator, tools, algorithms
from multiprocessing import Pool
from collections import defaultdict
from sklearn.base import clone, is_classifier
from sklearn.model_selection._validation import _fit_and_score
from sklearn.model_selection._search import BaseSearchCV, check_cv
from sklearn.model_selection._search import BaseSearchCV, check_cv, _check_param_grid
from sklearn.metrics.scorer import check_scoring
from sklearn.utils.validation import _num_samples, indexable

from sklearn.utils.validation import _num_samples, indexable, check_is_fitted

def enum(**enums):
return type('Enum', (), enums)
Expand Down Expand Up @@ -284,6 +285,7 @@ def __init__(self, estimator, params, scoring=None, cv=4,
self.gene_type = gene_type
self.all_history_ = []
self._cv_results = None
_check_param_grid(params)

@property
def possible_params(self):
Expand Down

0 comments on commit 5492f1b

Please sign in to comment.