Skip to content

Commit

Permalink
downgrade river
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Kulbach committed Oct 18, 2022
1 parent 18bd7ad commit bf590d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions EvOAutoML/base/evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from river import base, compose, metrics, preprocessing, tree
from river.base import Estimator
from river.drift import ADWIN
from river.metrics import ClassificationMetric
from sklearn.model_selection import ParameterGrid, ParameterSampler


Expand Down Expand Up @@ -83,7 +82,7 @@ def reset(self):
self._i = 0
return self

def _mutate_estimator(self, estimator) -> (base.Classifier, ClassificationMetric):
def _mutate_estimator(self, estimator) -> (base.Classifier):
child_estimator = copy.deepcopy(estimator)
key_to_change = self._rng.choice(list(self.param_grid.keys()))
value_to_change = self.param_grid[key_to_change][self._rng.choice(range(len(self.param_grid[key_to_change])))]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scikit-learn==1.0.2",
"scikit-surprise==1.1.1",
"pandas~=1.3.2",
"river~=0.13.0",
"river~=0.10.1",
"tqdm~=4.61.2",
"pytest==7.0.1",
]
Expand Down

0 comments on commit bf590d2

Please sign in to comment.