@@ -5,22 +5,25 @@ export fit
5
5
# TODO : in the future, have cases where if the things are too big, take another default.
6
6
# also should check if p > n in which case should do dual stuff (or other appropriate alternative)
7
7
8
+ # Linear, Ridge
8
9
_solver (:: GLR{L2Loss,<:L2R} , np:: NTuple{2,Int} ) = Analytical ()
9
10
11
+ # Logistic, Multinomial
10
12
_solver (:: GLR{LogisticLoss,<:L2R} , np:: NTuple{2,Int} ) = LBFGS ()
11
13
_solver (:: GLR{MultinomialLoss,<:L2R} , np:: NTuple{2,Int} ) = LBFGS ()
12
14
13
- function _solver (glr:: GLR{<:SMOOTH_LOSS,<:ENR} , np:: NTuple{2,Int} )
15
+ # Lasso, ElasticNet, Logistic, Multinomial
16
+ function _solver (glr:: GLR{<:SmoothLoss,<:ENR} , np:: NTuple{2,Int} )
14
17
(is_l1 (glr. penalty) || is_elnet (glr. penalty)) && return FISTA ()
15
- @error " Not yet implemented"
18
+ @error " Not yet implemented. "
16
19
end
17
20
18
- _solver ( :: GLR{RobustLoss,<:L2R} , np :: NTuple{2,Int} ) = LBFGS ()
19
- # _solver(::GLR{L1Loss ,<:L2R}, np::NTuple{2,Int}) = FADMM ()
21
+ # Robust, Quantile
22
+ _solver (:: GLR{<:RobustLoss ,<:L2R} , np:: NTuple{2,Int} ) = LBFGS ()
20
23
21
24
# Fallback NOTE: should revisit bc with non-smooth, wouldn't work probably PGD/PSGD
22
25
# depending on how much data there is
23
- _solver (:: GLR , np:: NTuple{2,Int} ) = @error " Not yet implemented"
26
+ _solver (:: GLR , np:: NTuple{2,Int} ) = @error " Not yet implemented. "
24
27
25
28
26
29
"""
0 commit comments