Comments (5)
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.
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.
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.
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.
Finished implementation.
In reset_experiments i worked with pythons *args notation.
from py_experimenter.
Related Issues (20)
- Batch update of database
- Improve logging to allow own formatter and adding custom handlers
- Weights and Biases for Logtables
- Question: how do parallel jobs work in PyExperimenter? HOT 4
- [Usability] More explicit than key error HOT 2
- [Feature] `n_jobs` as paramter to `execute()` HOT 2
- Update Logger Documentation
- Delete .codecarbon.config after execution
- Booelan Handling in SQLITE
- Problem when executing fill_table twice
- n_jobs not working as expected
- Documentation for distributed execution HOT 3
- Ssh Minor Problems
- Improve logging when initializing database
- Documentation usage example is slightly wrong HOT 1
- Incorrect Docstring/ behaviour for use_ssh_tunnel HOT 3
- Feature Requests: Add new experiment, and start immidiately
- Feature Request: Connect to Running Experiment
- Feature Request: Logging Syntax
- SQLITE Test execution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py_experimenter.