Skip to content

Commit

Permalink
Fix FitCrossValidationCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
lixfz committed Oct 25, 2023
1 parent ea7631d commit f1a2add
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hypergbm/hyper_gbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ def on_search_end(self, hyper_model):
def on_search_error(self, hyper_model):
self.on_search_end(hyper_model)

def __getstate__(self):
try:
state = super().__getstate__()
except AttributeError:
state = self.__dict__

state = state.copy()
state['pbar'] = None

return state


class HyperGBMExplainer:
def __init__(self, hypergbm_estimator, data=None):
Expand Down

0 comments on commit f1a2add

Please sign in to comment.