Skip to content
Snippets Groups Projects
Unverified Commit 3361b380 authored by Dominique Benielli's avatar Dominique Benielli Committed by GitHub
Browse files

Update adaboost.py

parent 14680d9c
No related branches found
No related tags found
No related merge requests found
......@@ -23,9 +23,9 @@ class Adaboost(AdaBoostClassifier, BaseMonoviewClassifier):
"""
def __init__(self, random_state=None, n_estimators=50,
estimator=None, **kwargs):
estimator=None, estimator_config=None, **kwargs):
base_estimator = BaseMonoviewClassifier.get_base_estimator(self,
estimator)
estimator, estimator_config)
AdaBoostClassifier.__init__(self,
random_state=random_state,
n_estimators=n_estimators,
......@@ -40,6 +40,7 @@ class Adaboost(AdaBoostClassifier, BaseMonoviewClassifier):
self.plotted_metric = metrics.zero_one_loss
self.plotted_metric_name = "zero_one_loss"
self.step_predictions = None
self.estimator_config = estimator_config
def fit(self, X, y, sample_weight=None):
begin = time.time()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment