Git Product home page Git Product logo

jikken's Introduction

Jikken 実験

CLI Status

Documentation Status

Jikken is a lightweight cli experiment manager for scientific experiments written in python.

It makes very few assumptions on the experiment and requires almost zero code changes to the scripts. In fact the only assumption is that the main function of the script to be run accepts a positional argument with either a directory with json/yaml config files or a path to single json/yaml file. That's it. Optionally if the code of the experiment is in a git repo, the git info will be added as well.

Features

  • Python 3.{5,6} code
  • Support for TinyDB, MongoDB, and ES
  • tagging of experiments
  • CLI to access experiment data
  • only requires the script to load the variables from a file or folder
  • support for json/yaml configs
  • understands git directories

Installation

Jikken can be installed from pip. This installation is compatible with Linux/Mac OSX and Python 3.5 or greater is required. To install the package use:

pip install jikken

or if the default python on your system is 2.7 use instead

pip3 install jikken

Usage Example

The main goal of Jikken is to require as little changes to your experiment code as possible. It's main assumption is that you have a script that runs an experiment and that the scripts accepts at least a positional argument with the location of the experiment's config. e.g. Let's assume you have an experiment runs by running my_experiment.py and it reads its configuration from a yaml file myconfig.yaml you would run it with:

python my_experiment.py myconfig.yaml

Then in order to let jikken record the experiment you would run instead:

jikken run my_experiment.py -c myconfig.yaml -n "my first experiment"

Jikken will then capture the config, Start the experiment, capture stdout and stderr, and save the information in the database as set in the config file.

Documentation

The full documentation of jikken can be found here

Contributing

  1. Fork it here
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Release History

  • 0.2.1
    • Fixed bug with updated monitored (and added test)
    • Added cli delete command for both experiments and multistage experiments
    • refactored documentation a bit
  • 0.2.0
    • Added mongodb and ES support
    • Added support for multistage experiments
    • started writing documentation on read the docs
  • 0.1.0
    • Work in progress

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository

Authors

  • Agis Oikonomou - Initial work

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

jikken's People

Contributors

agistrueai avatar outcastofmusic avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.