Questions tagged [python-sacred]

Sacred is a python library to run experiments. These can be configured with different parameters, and results logged to various services. Use this tag for programming questions related to sacred.

Sacred is a tool to help you configure, organize, log and reproduce experiments [...]

This tag should be used for all programming questions related to sacred.

Sacred is a python library to run experiments. On each run, it logs the time, computer details, parameters given by the experimenter, and more.

It can f.ex. be used to store classification results for model selection.

Resources:

10 questions
5
votes
2 answers

python package can be installed by pip but not conda

I need the sacred package for a new code base I downloaded. It requires sacred. https://pypi.python.org/pypi/sacred conda install sacred fails with PackageNotFoundError: Package missing in current osx-64 channels: - sacred The instruction on…
bhomass
  • 3,414
  • 8
  • 45
  • 75
5
votes
4 answers

Using Sacred Module with iPython

I am trying to set up sacred for Python and I am going through the tutorial. I was able to set up sacred using pip install sacred with no issues. I am having trouble running the basic code: from sacred import Experiment ex =…
RDizzl3
  • 318
  • 3
  • 13
3
votes
3 answers

Sacred - pass all parameters as one

When using Sacred it is necessary to pass all variables from the experiment config, into the main function, for example ex = Experiment('iris_rbf_svm') @ex.config def cfg(): C = 1.0 gamma = 0.7 @ex.automain def run(C, gamma): iris =…
bluesummers
  • 11,365
  • 8
  • 72
  • 108
2
votes
0 answers

AttributeError: 'TracebackException' object has no attribute 'exc_trackback' Error

I am getting the error given below from the code in Sacred's utils.py, please let me know if there is any solution for it. AttributeError: 'TracebackException' object has no attribute 'exc_trackback' exc_type, exc_value, exc_traceback =…
Aritra Sen
  • 143
  • 1
  • 11
2
votes
1 answer

How to save data to remote mongoDB via ssh tunnel? (connection refused)

I have two computers: Ubuntu1 and Ubuntu2. Ubuntu1 runs MongoDB with database Sacred3. I want to connect from U2 to U1 via ssh and store there my experiment results. What I tried and failed: 1. I installed mongo DB, created sacred3, I have ssh key…
MikolajM
  • 300
  • 1
  • 13
2
votes
0 answers

How to merge Hyperopt and Sacred together?

I am trying to use omniboard to keep a track of all the experiments hyperopt library is doing. The link below is from sacred library documentation and I am not able to use it to merge hyperopt and sacred together. Right now when I am defining an…
deepika
  • 81
  • 4
2
votes
2 answers

sacred, python - ex.config in one file and ex

so I've been poking around with sacred a little bit and it seems great. unfortunately I did not find any multiple files use-cases examples like I am trying to implement. so i have this file called configuration.py, it is intended to contain…
orialz
  • 75
  • 1
  • 9
1
vote
0 answers

Gridsearch on an experiment in Sacred

I'm trying to see some ways to store my ML experiments and I came across some python libraries like Sacred, ModelChimp, MLFlow, .... The one I like the most is Sacred, but I would like to know how to save the GridSearchCV sklearn object the way…
Angelo
  • 575
  • 3
  • 18
1
vote
3 answers

Accessing files in Mongodb

I am using sacred package in python, this allows to keep track of computational experiments i'm running. sacred allows to add observer (mongodb) which stores all sorts of information regarding the experiment (configuration, source files etc). sacred…
orialz
  • 75
  • 1
  • 9
1
vote
1 answer

How to import the pickle file if sacred failed to connect to MongoDB

The experiment software sacred was run without MongoDB in the background with a configured mongo-observer. When it tried to write the settings to MongoDB, this failed, creating the file /tmp/sacred_mongo_fail__eErwU.pickle, with the message Warning:…
serv-inc
  • 35,772
  • 9
  • 166
  • 188