Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
simplymathematics committed Aug 13, 2024
1 parent d674b97 commit 171efbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deckard/base/model/sklearn_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ def __len__(self):

def __iter__(self):
return iter(self.pipeline)

def __hash__(self):
return int(my_hash(self), 16)

def __call__(self, model):
params = deepcopy(asdict(self))
pipeline = params.pop("pipeline")
Expand Down Expand Up @@ -210,7 +211,7 @@ class SklearnModelInitializer:

def __hash__(self):
return int(my_hash(self), 16)

def __init__(self, data, model=None, library="sklearn", pipeline={}, **kwargs):
self.data = data
self.model = model
Expand Down

0 comments on commit 171efbd

Please sign in to comment.