We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e4b37 commit d8b603aCopy full SHA for d8b603a
1 file changed
ya_glm/estimator_getter.py
@@ -7,10 +7,9 @@
7
LinRegMultiResponseMixin
8
from ya_glm.models.huber_regression import HuberRegMixin, \
9
HuberRegMultiResponseMixin
10
-
11
from ya_glm.models.poisson_regression import PoissonRegMixin,\
12
PoissonRegMultiResponseMixin
13
+from ya_glm.models.quantile_regression import QuantileRegMixin
14
15
# penalties
16
from ya_glm.pen_glm.Vanilla import GlmVanilla
@@ -50,6 +49,7 @@
50
49
51
52
def get_model_mixin(loss_func='lin_reg'):
+
53
# loss function
54
if loss_func == 'lin_reg':
55
return LinRegMixin
@@ -75,6 +75,9 @@ def get_model_mixin(loss_func='lin_reg'):
75
elif loss_func == 'poisson_mr':
76
return PoissonRegMultiResponseMixin
77
78
+ elif loss_func == 'quantile':
79
+ return QuantileRegMixin
80
81
else:
82
raise NotImplementedError("{} not supported".format(loss_func))
83
0 commit comments