Giter VIP home page Giter VIP logo

Comments (2)

MargaretDuff avatar MargaretDuff commented on July 17, 2024

Thanks @epapoutsellis some initial thoughts but I can take another look next week -

  • PDHG with verbose=2 does not print primal-dual gap as before

A callback to print the primal-dual gap would be useful for CIL and shouldn't be difficult to write - I can take a look next week.

  • Different precision in objective values between ProgressCallback and TextProgressCallback

I think this is a question for @casperdcl. But are you referring to the different values for it/s or the 2dp vs3dp for ProgressCallback and TextProgressCallback?

  • There is no timing attribute in PDHG or Algorithm class. This used to return a list with times (per update_objective_interval) without measuring computational time of the objectives.

Again, it should be possible to write a callback for this. What timings are you interested in? Being able to time each iteration, excluding the objective calculation?

  • What does it mean 13.57it/s? For some stochastic algs, it would be nice to get the time per one iteration when a stochastic gradient is used and the time per one iteration when full gradient iscomputed.

13.57it/s is the number of iterations per second so the reciprocal of time per iteration.

from cil.

epapoutsellis avatar epapoutsellis commented on July 17, 2024

Since we compute primal-dual gap by default, I think is better to print it (if one wants) as we did before.

Also, it is strange to see a continuous representation for iterations, e.g., 13.57 iterations. Seconds per iteration is more reasonable which is equal to Seconds per execution time for the update method.
Why in ProgressCallback we get 11.57it/s and with TextProgressCallback 13.01 it/s?

We can do many things with callbacks but previous default behaviour was much better. Also, printing in jupyter is very strange.

from cil.

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.