Giter VIP home page Giter VIP logo

Comments (4)

patrick-kidger avatar patrick-kidger commented on June 19, 2024

Hmm. I don't think we offer that at the moment!

FWIW if this is just for debugging purposes then you could add jax.debug.print statements to the input or output of your function.

If you really want to interact with the history programmatically then (a) I'm quite curious what the use-case is, but also (b) we could probably add an additional optx.minimise(..., saveat=...) argument without too much difficulty.

from optimistix.

itk22 avatar itk22 commented on June 19, 2024

Hi,
Thanks for the quick response. I am currently trying to use optimistix to implement Model Agnostic Meta-Learning and its implicit version (https://arxiv.org/abs/1909.04630). I was considering using a multi_step_solve approach from above for the outer meta-learning loop because it makes the training very quick. However, I need to be able to monitor the meta-losses, which is why I was looking into the less efficient single_step_solve. The saveat option would be very useful!

On a side note, I had a look at the interactive stepping example, and I thought that it could be useful for solvers to have an update method for performing a single optimisation step, similar to JAXOpt. What do you think?

from optimistix.

patrick-kidger avatar patrick-kidger commented on June 19, 2024

Makes sense. I'll mark this as a feature request for a saveat option. (And I'm sure we'd be happy to take a PR on this.)

For performing a single optimisation steps, then I think we already have this, as the step method on the solver?

from optimistix.

itk22 avatar itk22 commented on June 19, 2024

Thanks Patrick, I will try to make a PR on this :)

from optimistix.

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.