Code Monkey home page Code Monkey logo

Comments (4)

basnijholt avatar basnijholt commented on May 26, 2024

[This should be pretty easy to implement, because adaptive already accepts callbacks. We just need to pass the method and call it somewhere around here

runner.start_periodic_saving({"fname": fname}, interval=args.save_interval)

Currently AFK, but will look tomorrow.

from adaptive-scheduler.

jbweston avatar jbweston commented on May 26, 2024

Yes; I think the issue is piping 'save_method' all the way from the top of the API. We would also need to store 'save_method' somewhere so that the clients can pick it up.

Contrast this to 'save_dataframe', where we hardcode the method invocation and instead pass through simple data (boolean flag and a format specifier string).

from adaptive-scheduler.

basnijholt avatar basnijholt commented on May 26, 2024

We can probably pass it in the same way as the runner_kwargs:

parser.add_argument("--serialized-runner-kwargs", action="store", type=str)

base64_runner_kwargs = _serialize_to_b64(runner_kwargs)

from adaptive-scheduler.

basnijholt avatar basnijholt commented on May 26, 2024

@jbweston, I opened #209.

from adaptive-scheduler.

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.