Skip to content

Mini-package to make it trivial to track experiments

License

Notifications You must be signed in to change notification settings

microprediction/runthis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

runthis tests deploy-pypi

Trivial utility to help you arrange experiments like this:

Don't want to do that? Thanks for stopping by anyway.

Never edit script contents

Instead, infer from the file names:

    if __name__=='__main__':
        import os
        kwargs = parse_kwargs(__file__.split(os.path.sep)[-1])
        my_experiment(**kwargs)

See example

New experiment? Make a copy of the file and edit the name only.

Int, float arguments

Just call the experiment file

   my_function?n=int:5&d=cat&init=[float:0.2,float:0.2,float:0.2].py

There's a short blog post here but I think you've got the gist.