Coder Social home page Coder Social logo

Comments (5)

tornede avatar tornede commented on June 29, 2024

Currently there is a workaround for this via:

experimenter.reset_experiments(status='created')
experimenter.reset_experiments(status='running')
experimenter.reset_experiments(status='error')
experimenter.reset_experiments(status='done')

But I agree that a method resetting all experiments (resets all experiment if no status is given)

experimenter.reset_experiments()

as well as a method deleting the table

experimenter.delete_table()

are nice additions.

from py_experimenter.

fmohr avatar fmohr commented on June 29, 2024

Hi,

the workaround only works if the table structure did not change. Btw.

experimenter.reset_experiments()

is currently a shortcut for

experimenter.reset_experiments(status="error")

Maybe the function should (also) accept lists of statuses and then you can make the default ["done", "error", "running"] or something like that.

experimenter.delete_table()

would indeed be nice. And then you could add a shortcut

def full_reset(self):
   self.delete_table()
   self.fill_table()

from py_experimenter.

tornede avatar tornede commented on June 29, 2024

the workaround only works if the table structure did not change.

True.

Maybe the function should (also) accept lists of statuses and then you can make the default ["done", "error", "running"]

Also a nice addition to the method reset_experiments().

would indeed be nice. And then you could add a shortcut

def full_reset(self):
   self.delete_table()
   self.fill_table()

This only works if you fill your table from a config file. In case you fill the table with one of the other options, this will not be so trivial.

from py_experimenter.

tornede avatar tornede commented on June 29, 2024

Final summary about what will be done:

  • Add Enum ExperimentStatus for the strings
  • Modify reset_experiments() to be able to get
    • single status
    • list of status
    • "all" to reset all status
  • Add method delete_table()

Furthermore, I currently don't see the need for the suggested method full_reset(). Either you want to modify the structure of the table itself, which you can do with delete and fill, or you want to stay with the table structure and just reset some of the experiments.

from py_experimenter.

LukasFehring avatar LukasFehring commented on June 29, 2024

Finished implementation.

In reset_experiments i worked with pythons *args notation.

from py_experimenter.

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.