-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Describe the bug
I am unable to fit a simple model using the experimental Pinball
-loss.
Steps to reproduce
from skglm.experimental import Pinball, PDCD_WS
from skglm import GeneralizedLinearEstimator
from skglm.penalties import L1
from skglm.solvers import ProxNewton
estimator = GeneralizedLinearEstimator(
datafit=Pinball(.2),
penalty=L1(alpha=1.),
solver=ProxNewton(),
)
estimator.fit(X, y)
yields
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Unknown attribute 'raw_grad' of type instance.jitclass.Pinball#371180a40<quantile_level:float64>
File "../../micromamba/envs/.../lib/python3.12/site-packages/skglm/solvers/prox_newton.py", line 430:
def _construct_grad(X, y, w, Xw, datafit, ws):
<source elided>
# recomputing raw_grad for every j, which is costly for logreg
raw_grad = datafit.raw_grad(y, Xw)
^
```
mathurinm and Badr-MOUFAD
Metadata
Metadata
Assignees
Labels
No labels