Skip to content

Commit 1f3d9a5

Browse files
committed
pre-commit
1 parent d42ee14 commit 1f3d9a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

skpro/regression/unconditional_distfit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class UnconditionalDistfitRegressor(BaseProbaRegressor):
4848
"tests:vm": True, # set True if special VM is needed
4949
}
5050

51-
5251
def __init__(self, distr_type="norm", random_state=None, fit_histogram=False):
5352
"""
5453
Initialize UnconditionalDistfitRegressor.
@@ -122,7 +121,9 @@ def var(self):
122121
model = self.distfit_obj.model
123122
if isinstance(model, dict) and "scale" in model:
124123
return model["scale"] ** 2
125-
raise AttributeError("distfit model does not have a 'scale' (variance) attribute")
124+
raise AttributeError(
125+
"distfit model does not have a 'scale' (variance) attribute"
126+
)
126127

127128
def get_params(self, deep=True):
128129
"""Return parameters of the distribution."""

0 commit comments

Comments
 (0)