Skip to content

Commit

Permalink
Update old_base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Sep 10, 2023
1 parent 4d3aa9d commit ed299aa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions skpro/base/old_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ class Distribution(metaclass=ImplementsEnhancedInterface):
Interface mode ('elementwise' or 'batch')
"""

def __init__(self, estimator, X, selection=slice(None), mode="elementwise"): # noqa
def __init__( # noqa
self, estimator, X, selection=slice(None), mode="elementwise" # noqa
): # noqa
self.estimator = estimator
self._X = X
self.index = slice(None)
Expand Down Expand Up @@ -520,9 +522,11 @@ def fit(self, X, y):
-------
self : returns an instance of self.
"""
warnings.warn("The estimator doesn't implement a fit procedure", UserWarning) # noqa
warnings.warn( # noqa
"The estimator doesn't implement a fit procedure", UserWarning # noqa
) # noqa

return self
return self # noqa

def score(self, X, y, sample=True, return_std=False):
"""Return the log-loss score.
Expand Down

0 comments on commit ed299aa

Please sign in to comment.