Skip to content

Commit 92ce29a

Browse files
committed
fixing kde parameter in UnconditionalDistfitRegressor and related test, and adding get_params to DeterministicReductionRegressor for better sklearn compatibility.
1 parent 3c99ced commit 92ce29a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

skpro/regression/unconditional_distfit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class UnconditionalDistfitRegressor(BaseProbaRegressor):
4949
}
5050

5151
def __init__(
52-
self, distr_type="norm", random_state=None, fit_kde=False, fit_histogram=False
52+
self, distr_type="norm", random_state=None, fit_kde=True, fit_histogram=False
5353
):
5454
"""
5555
Initialize UnconditionalDistfitRegressor.
@@ -68,7 +68,7 @@ def __init__(
6868
"""
6969
self.distr_type = distr_type
7070
self.random_state = random_state
71-
self.fit_kde = False
71+
self.fit_kde = fit_kde
7272
self.fit_histogram = fit_histogram
7373
super().__init__()
7474

0 commit comments

Comments
 (0)