Skip to content

Commit d8b603a

Browse files
committed
quantile
1 parent 38e4b37 commit d8b603a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ya_glm/estimator_getter.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
LinRegMultiResponseMixin
88
from ya_glm.models.huber_regression import HuberRegMixin, \
99
HuberRegMultiResponseMixin
10-
1110
from ya_glm.models.poisson_regression import PoissonRegMixin,\
1211
PoissonRegMultiResponseMixin
13-
12+
from ya_glm.models.quantile_regression import QuantileRegMixin
1413

1514
# penalties
1615
from ya_glm.pen_glm.Vanilla import GlmVanilla
@@ -50,6 +49,7 @@
5049

5150

5251
def get_model_mixin(loss_func='lin_reg'):
52+
5353
# loss function
5454
if loss_func == 'lin_reg':
5555
return LinRegMixin
@@ -75,6 +75,9 @@ def get_model_mixin(loss_func='lin_reg'):
7575
elif loss_func == 'poisson_mr':
7676
return PoissonRegMultiResponseMixin
7777

78+
elif loss_func == 'quantile':
79+
return QuantileRegMixin
80+
7881
else:
7982
raise NotImplementedError("{} not supported".format(loss_func))
8083

0 commit comments

Comments
 (0)