GithubHelp home page GithubHelp logo

Comments (4)

QB3 avatar QB3 commented on June 13, 2024

I guess this is linked to #33

from skglm.

mathurinm avatar mathurinm commented on June 13, 2024

That's where I noticed it, but it should be fixed in main first, before the other PR is merged, to make reviewing and benchmarking easier

@Badr-MOUFAD will have a look in the upcoming days

from skglm.

QB3 avatar QB3 commented on June 13, 2024

OK but just to be sure, this problem only appears in the group solver?

w_acc, Xw_acc = accelerator.extrapolate(w, Xw)

For me it does not appear:

from skglm.

Badr-MOUFAD avatar Badr-MOUFAD commented on June 13, 2024

AndersonAcceleration.extrapolate(w, Xw) returns the same (w, Xw) for iteration between 0 and K-1 (to construct the matrix of residuals) and return (w_acc, Xw_acc) at the K iteration.

Hence, we don't need to evaluate p_obj_acc (L96) for iteration 0 till K-1 since it is the same as p_obj.

w_acc, Xw_acc = accelerator.extrapolate(w, Xw)
p_obj = datafit.value(y, w, Xw) + penalty.value(w)
p_obj_acc = datafit.value(y, w_acc, Xw_acc) + penalty.value(w_acc)
if p_obj_acc < p_obj:
w, Xw = w_acc, Xw_acc
p_obj = p_obj_acc

OK but just to be sure, this problem only appears in the group solver?

Indeed @QB3, so far this problem is only related to the group solver as it is the only one using AndersonAccelaration.
However, AA class will be adopted in other solvers (#33). Hence the need to handle this problem.


thx @mathurinm, that's a nice catch!

from skglm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.