Skip to content

Commit

Permalink
Merge pull request #38 from jgh9094/tutorial-fixes
Browse files Browse the repository at this point in the history
Tutorial fixes
  • Loading branch information
perib authored Aug 16, 2023
2 parents b069841 + e7209b6 commit e6a2647
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tpot2/evolvers/base_evolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def get_unevaluated_individuals(self, column_names, budget=None, individual_list
def evaluate_population_selection_early_stop(self,survival_counts, thresholds=None, budget=None):


survival_selector = tpot2.parent_selectors.survival_select_NSGA2
survival_selector = tpot2.selectors.survival_select_NSGA2

################

Expand Down
11 changes: 10 additions & 1 deletion tpot2/tpot_estimator/templates/tpottemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def __init__( self,
warm_start = False,
periodic_checkpoint_folder = None,
verbose = 0,
memory_limit = "4GB",
client = None
):
"""
See TPOTEstimator for documentation
Expand Down Expand Up @@ -64,6 +66,8 @@ def __init__( self,
periodic_checkpoint_folder = periodic_checkpoint_folder,
verbose = verbose,
classification=False,
memory_limit = memory_limit,
client = client
)


Expand Down Expand Up @@ -94,6 +98,9 @@ def __init__( self,
warm_start = False,
periodic_checkpoint_folder = None,
verbose = 0,
memory_limit = "4GB",
client = None

):
"""
See TPOTEstimator for documentation
Expand Down Expand Up @@ -126,10 +133,12 @@ def __init__( self,
periodic_checkpoint_folder = periodic_checkpoint_folder,
verbose = verbose,
classification=True,
memory_limit = memory_limit,
client = client
)


def predict(self, X, **predict_params):
check_is_fitted(self)
#X=check_array(X)
return self.fitted_pipeline_.predict(X,**predict_params)
return self.fitted_pipeline_.predict(X,**predict_params)

0 comments on commit e6a2647

Please sign in to comment.