Điểm qua IDSIA/sacred: 4.4k sao trên GitHub, viết chủ yếu bằng Python, thuộc nhóm AI Tools. Sacred is a tool to help you configure, organize, log and reproduce experiments developed at IDSIA.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
| *Every experiment is sacred*
| *Every experiment is great*
| *If an experiment is wasted*
| *God gets quite irate*
|pypi| |py_versions| |license| |rtfd| |doi|
|build| |coverage| |code_quality| |black|
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:
Config Scopes 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.
The documentation is hosted at ReadTheDocs <http://sacred.readthedocs.org/>. You can also Ask Sacred Guru <https://gurubase.io/g/sacred>, it is a Sacred-focused AI to answer your questions.
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:
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 pytest <http://pytest.org/latest/>_ package.
You can execute them by running pytest in the sacred directory like this:
pytest
There is also a config file for tox <https://tox.readthedocs.io/en/latest/>_ so you
can automatically run the tests for various python versions like this:
tox
Update pytest version
+++++++++++++++++++++
If you update or change the pytest version, the following files need to be changed:
dev-requirements.txt
tox.ini
test/test_utils.py
setup.py
Contributing
If you find a bug, have a feature request or want to discuss something general you are welcome to open an
issue <https://github.com/IDSIA/sacred/issues>. If you have a specific question related
to the usage of sacred, please ask a question on StackOverflow under the
python-sacred tag <https://stackoverflow.com/questions/tagged/python-sacred>. We value documentation
a lot. If you find something that should be included in the documentation please
document it or let us know whats missing. If you are using Sacred in one of your projects and want to share
your code with others, put your repo in the Projects using Sacred <docs/projects_using_sacred.rst>_ list.
Pull requests are highly welcome!
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 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.
Neptune is a metadata store for MLOps, built for teams that run a lot of experiments.
It gives you a single place to log, store, display, organize, compare, and query all your model-building metadata via API available for both Python and R programming languages:
.. image:: docs/images/neptune-query-api.png
In order to log your sacred experiments to Neptune, all you need to do is add an observer:
.. code-block:: python
from neptune.new.integrations.sacred import NeptuneObserver
ex.observers.append(NeptuneObserver(api_token='<YOUR_API_TOKEN>',
project='<YOUR_WORKSPACE/YOUR_PROJECT>'))
For more info, check the Neptune + Sacred integration guide <https://docs.neptune.ai/integrations-and-supported-tools/experiment-tracking/sacred>_.
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 <https://github.com/Qwlouse/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 <http://restheart.org>_ to access the database.
Related Projects
Sumatra <https://pythonhosted.org/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 <https://github.com/Kaixhin/FGLab>_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| 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.
License
This project is released under the terms of the MIT license <http://opensource.org/licenses/MIT>_.
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 <http://conference.scipy.org/proceedings/scipy2017/klaus_greff.html>_.
.. |pypi| image:: https://img.shields.io/pypi/v/sacred.svg
:target: https://pypi.python.org/pypi/sacred
:alt: Current PyPi Version
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/IDSIA/sacred là nguồn chính thức.
IDSIA/sacred có bao nhiêu sao?
IDSIA/sacred có 4.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/IDSIA/sacred. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
IDSIA/sacred có những chủ đề gì?
GitHub topics của IDSIA/sacred: "infrastructure", "machine-learning", "mongodb", "python", "reproducibility", "reproducible-research", "reproducible-science". TopGit xếp repo vào nhóm AI Tools.
IDSIA/sacred có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho IDSIA/sacred. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
IDSIA/sacred còn đang phát triển không?
Commit gần nhất trên IDSIA/sacred là 1.1 năm trước (theo timestamp GitHub). Repo có 394 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
IDSIA/sacred dùng license gì?
IDSIA/sacred phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
IDSIA/sacred viết bằng ngôn ngữ gì?
IDSIA/sacred chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về sacred?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về sacred.