Skip to content

Commit

Permalink
do not initialize child-learners twice in BalancingLearner
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Apr 23, 2020
1 parent e1073a9 commit 5308939
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adaptive/learner/balancing_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,8 @@ def __getstate__(self):
self.learners,
self._cdims_default,
self.strategy,
self._get_data(),
)

def __setstate__(self, state):
learners, cdims, strategy, data = state
learners, cdims, strategy = state
self.__init__(learners, cdims=cdims, strategy=strategy)
self._set_data(data)

0 comments on commit 5308939

Please sign in to comment.