Closed mathurinm closed 2 years ago
We can call datafit.initialize(X, y)
at the beginning of solver_path()
, which would set whatever attributes are needed for this datafit (i.e. only Quadratic would store Xt_y). these attributes would be later accessed by datafit.grad_j
, and we do not need to pass 10000 arguments to grad_j.
Sounds reasonable @QB3 ?
And we could also call penalty.initialize(X, y) for penalties such as Cel0 which depend on X
solved by #29
implementing
grad_j(self, w, X, Xw, j)
,lipshitz_constant
,value
For Quadratic we need to store
Xj_t_y
and it does not seem straightforward