Skip to main content

A command line utility that runs your command line scripts from a yaml script

Project description

:rocket::star:Now ``Dave`` supports both python ``3.5`` and ``3.6``!:celebrate::collision:

Dave is a command line utility for your experiments. It manages concurrent runs, command line arguments and other stuff nicely for you!

The things it manages include: - maximum concurrent runs (via python multiprocess.Pool) - environment variables (env) - default arguments - batch arguments for multiple experiments

Example Usage

First install via pip (it’s that simple!!)

pip install dave

Suppose you have the following folder structure

├── your_thesis
└── MAML_tensorflow
    ├── experiment.yml
    └── models

where the experiment.yml file looks like this:

%YAML 1.2
  max_concurrent: 10
  PYTHONPATH: test_directory
run: |
  {env} python {args}
  npts: 100
  num_epochs: 70000
  num_tasks: 10
  num_grad_steps: 1
  num_points_sampled: 10
  fix_amp: False
batch_args: # use good typing convention here
  - num_tasks: 10
    num_grad_steps: 1
    num_points_sampled: 10
  - num_tasks: 10
    num_grad_steps: 4
    num_points_sampled: 20
  - last_run: 10

Now under the project root, you can just run

dave --config-file "experiment.yml"

and it will automatically run the experiment twice, using the arguments in the batch_args field of the Yaml configuration file. ## To Develop

first download from github. Then under project folder, run (you also need to install the packages).

make dev test

Bucket List

  • [ ] Allow extensions
  • [ ] work on windows
  • [ ] allow env files

Happy Doing Science!



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dave, version 0.6.3
Filename, size File type Python version Upload date Hashes
Filename, size dave-0.6.3-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page