https://github.com/csyhuang/sacred
Sacred is a tool to help you configure, organize, log and reproduce experiments developed at IDSIA.
Science Score: 33.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 4 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
3 of 62 committers (4.8%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.1%) to scientific vocabulary
Keywords from Contributors
tensor
distributed
closember
deep-neural-networks
autograd
alignment
cupy
keras
mxnet
flexible
Last synced: 10 months ago
·
JSON representation
Repository
Sacred is a tool to help you configure, organize, log and reproduce experiments developed at IDSIA.
Basic Info
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of IDSIA/sacred
Created over 7 years ago
· Last pushed over 7 years ago
Metadata Files
Readme
Changelog
Contributing
License
README.rst
Sacred
======
| *Every experiment is sacred*
| *Every experiment is great*
| *If an experiment is wasted*
| *God gets quite irate*
|pypi| |py_versions| |license| |rtfd| |doi|
|unix_build| |windows_build| |coverage| |code_quality| |codacy|
Sacred is a tool to help you configure, organize, log and reproduce experiments.
It is designed to do all the tedious overhead work that you need to do around
your actual experiment in order to:
- keep track of all the parameters of your experiment
- easily run your experiment for different settings
- save configurations for individual runs in a database
- reproduce your results
Sacred achieves this through the following main mechanisms:
- **ConfigScopes** A very convenient way of the local variables in a function
to define the parameters your experiment uses.
- **Config Injection**: You can access all parameters of your configuration
from every function. They are automatically injected by name.
- **Command-line interface**: You get a powerful command-line interface for each
experiment that you can use to change parameters and run different variants.
- **Observers**: Sacred provides Observers that log all kinds of information
about your experiment, its dependencies, the configuration you used,
the machine it is run on, and of course the result. These can be saved
to a MongoDB, for easy access later.
- **Automatic seeding** helps controlling the randomness in your experiments,
such that the results remain reproducible.
Example
-------
+------------------------------------------------+--------------------------------------------+
| **Script to train an SVM on the iris dataset** | **The same script as a Sacred experiment** |
+------------------------------------------------+--------------------------------------------+
| .. code:: python | .. code:: python |
| | |
| from numpy.random import permutation | from numpy.random import permutation |
| from sklearn import svm, datasets | from sklearn import svm, datasets |
| | from sacred import Experiment |
| | ex = Experiment('iris_rbf_svm') |
| | |
| | @ex.config |
| | def cfg(): |
| C = 1.0 | C = 1.0 |
| gamma = 0.7 | gamma = 0.7 |
| | |
| | @ex.automain |
| | def run(C, gamma): |
| iris = datasets.load_iris() | iris = datasets.load_iris() |
| perm = permutation(iris.target.size) | per = permutation(iris.target.size) |
| iris.data = iris.data[perm] | iris.data = iris.data[per] |
| iris.target = iris.target[perm] | iris.target = iris.target[per] |
| clf = svm.SVC(C, 'rbf', gamma=gamma) | clf = svm.SVC(C, 'rbf', gamma=gamma) |
| clf.fit(iris.data[:90], | clf.fit(iris.data[:90], |
| iris.target[:90]) | iris.target[:90]) |
| print(clf.score(iris.data[90:], | return clf.score(iris.data[90:], |
| iris.target[90:])) | iris.target[90:]) |
+------------------------------------------------+--------------------------------------------+
Documentation
-------------
The documentation is hosted at `ReadTheDocs `_.
Installing
----------
You can directly install it from the Python Package Index with pip:
pip install sacred
Or if you want to do it manually you can checkout the current version from git
and install it yourself:
| git clone https://github.com/IDSIA/sacred.git
| cd sacred
| python setup.py install
You might want to also install the ``numpy`` and the ``pymongo`` packages. They are
optional dependencies but they offer some cool features:
pip install numpy, pymongo
Tests
-----
The tests for sacred use the `py.test `_ package.
You can execute them by running ``py.test`` in the sacred directory like this:
py.test
There is also a config file for `tox `_ so you
can automatically run the tests for various python versions like this:
tox
Frontends
---------
At this point there are three frontends to the database entries created by sacred (that I'm aware of).
They are developed externally as separate projects.
`Omniboard `_
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. image:: docs/images/omniboard-table.png
.. image:: docs/images/omniboard-metric-graphs.png
Omniboard is a web dashboard that helps in visualizing the experiments and metrics / logs collected by sacred.
Omniboard is written with React, Node.js, Express and Bootstrap.
`Sacredboard `_
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. image:: docs/images/sacredboard.png
Sacredboard is a web-based dashboard interface to the sacred runs stored in a
MongoDB.
`SacredBrowser `_
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. image:: docs/images/sacred_browser.png
SacredBrowser is a PyQt4 application to browse the MongoDB entries created by
sacred experiments.
Features include custom queries, sorting of the results,
access to the stored source-code, and many more.
No installation is required and it can connect to a local
database or over the network.
`Prophet `_
+++++++++++++++++++++++++++++++++++++++++++++++
Prophet is an early prototype of a webinterface to the MongoDB entries created by
sacred experiments, that is discontinued.
It requires you to run `RestHeart `_ to access the database.
Related Projects
----------------
`Sumatra `_
++++++++++++++++++++++++++++++++++++++++++++++
| Sumatra is a tool for managing and tracking projects based on numerical
| simulation and/or analysis, with the aim of supporting reproducible research.
| It can be thought of as an automated electronic lab notebook for
| computational projects.
Sumatra takes a different approach by providing commandline tools to initialize
a project and then run arbitrary code (not just python).
It tracks information about all runs in a SQL database and even provides a nice browser tool.
It integrates less tightly with the code to be run, which makes it easily
applicable to non-python experiments.
But that also means it requires more setup for each experiment and
configuration needs to be done using files.
Use this project if you need to run non-python experiments, or are ok with the additional setup/configuration overhead.
`Future Gadget Laboratory `_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| FGLab is a machine learning dashboard, designed to make prototyping
| experiments easier. Experiment details and results are sent to a database,
| which allows analytics to be performed after their completion. The server
| is FGLab, and the clients are FGMachines.
Similar to Sumatra, FGLab is an external tool that can keep track of runs from
any program. Projects are configured via a JSON schema and the program needs to
accept these configurations via command-line options.
FGLab also takes the role of a basic scheduler by distributing runs over several
machines.
`CDE `_
+++++++++++++++++++++++++++++++++++++++++
By tracing system calls during program execution CDE creates a snapshot of
**all** used files and libraries to guarantee the ability to reproduce any unix
program execution. It *only* solves reproducibility, but it does so thoroughly.
License
-------
This project is released under the terms of the `MIT license `_.
Citing Sacred
-------------
`K. Greff, A. Klein, M. Chovanec, F. Hutter, and J. Schmidhuber, ‘The Sacred Infrastructure for Computational Research’,
in Proceedings of the 15th Python in Science Conference (SciPy 2017), Austin, Texas, 2017, pp. 49–56
`_.
.. |pypi| image:: https://img.shields.io/pypi/v/sacred.svg
:target: https://pypi.python.org/pypi/sacred
:alt: Current PyPi Version
.. |py_versions| image:: https://img.shields.io/pypi/pyversions/sacred.svg
:target: https://pypi.python.org/pypi/sacred
:alt: Supported Python Versions
.. |license| image:: https://img.shields.io/badge/license-MIT-blue.png
:target: http://choosealicense.com/licenses/mit/
:alt: MIT licensed
.. |rtfd| image:: https://readthedocs.org/projects/sacred/badge/?version=latest&style=flat
:target: http://sacred.readthedocs.org/
:alt: ReadTheDocs
.. |doi| image:: https://zenodo.org/badge/doi/10.5281/zenodo.16386.svg
:target: http://dx.doi.org/10.5281/zenodo.16386
:alt: DOI for this release
.. |unix_build| image:: https://img.shields.io/travis/IDSIA/sacred.svg?branch=master&style=flat&label=unix%20build
:target: https://travis-ci.org/IDSIA/sacred
:alt: Travis-CI Status
.. |windows_build| image:: https://img.shields.io/appveyor/ci/qwlouse/sacred.svg?style=flat&label=windows%20build
:target: https://ci.appveyor.com/project/Qwlouse/sacred
:alt: appveyor-CI Status
.. |coverage| image:: https://coveralls.io/repos/IDSIA/sacred/badge.svg
:target: https://coveralls.io/r/IDSIA/sacred
:alt: Coverage Report
.. |code_quality| image:: https://scrutinizer-ci.com/g/IDSIA/sacred/badges/quality-score.png?b=master
:target: https://scrutinizer-ci.com/g/IDSIA/sacred/
:alt: Code Scrutinizer Quality
.. |codacy| image:: https://img.shields.io/codacy/acb7bba4467e47deaf260d6df5c0279f.svg?style=flat
:target: https://www.codacy.com/app/qwlouse/sacred
:alt: Codacity rating
Owner
- Name: Clare S. Y. Huang
- Login: csyhuang
- Kind: user
- Website: http://claresyhuang.info
- Twitter: claresyhuang
- Repositories: 43
- Profile: https://github.com/csyhuang
Data Scientist. Climate Scientist. Ph.D in Geophysical Sciences (U of Chicago). Love coding, writing and playing music.
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Qwlouse | q****e@g****m | 461 |
| Klaus Greff | k****s@i****h | 181 |
| Qwlouse | k****f@g****t | 53 |
| Martin Chovanec | c****m@g****m | 40 |
| Chris Musselle | c****e@g****m | 36 |
| qwlouse | k****f@s****m | 22 |
| thequilo | t****n@l****e | 8 |
| Thomas Fan | t****n@g****m | 8 |
| Christoph Boeddeker | b****r | 6 |
| Remy Cocole | r****e@n****m | 6 |
| JarnoRFB | r****e@w****e | 6 |
| Daan Wynen | b****g@g****e | 5 |
| Romain Bossart | r****t@f****m | 4 |
| kamo | n****9@g****m | 3 |
| Daniel Sáez Trigueros | d****8@g****m | 3 |
| Bohumir Zamecnik | b****k@g****m | 3 |
| VNMabus | v****s@g****m | 3 |
| LukasDrude | m****l@l****e | 3 |
| Mathis Antony | s****r@g****m | 3 |
| serv-inc | s****c | 2 |
| Avinash Ummadisingu | a****u@u****h | 2 |
| absolutelyNoWarranty | a****y | 2 |
| Patrick Huber | p****r@i****h | 2 |
| serv-inc | k****n@g****m | 2 |
| Gerben | g****n@t****m | 2 |
| Yannic Kilcher | y****r@g****m | 2 |
| Aiden Nibali | d****n@g****m | 2 |
| jkramar | j****r@g****m | 2 |
| Ayushman Dash | d****9@g****m | 2 |
| jnphilipp | m****l@j****g | 2 |
| and 32 more... | ||
Committer Domains (Top 20 + Academic)
motorola.com: 1
ge.com: 1
yahoo.de: 1
butterflynetinc.com: 1
usecode.org: 1
roliveira.net: 1
insitu.de: 1
leon-sixt.de: 1
mail.uni-paderborn.de: 1
bsse.ethz.ch: 1
intec.ugent.be: 1
gatech.edu: 1
samsung.com: 1
jnphilipp.org: 1
treora.com: 1
ihomelab.ch: 1
usi.ch: 1
lukas-drude.de: 1
fastmail.com: 1
gmx.de: 1
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0