Giter VIP home page Giter VIP logo

sacred's People

Contributors

absolutelynowarranty avatar berger-stx avatar black-puppydog avatar boeddeker avatar bzamecnik avatar chovanecm avatar cool-rr avatar d4nst avatar gabrieldemarmiesse avatar jarnorfb avatar jkramar avatar jnphilipp avatar kamo-naoyuki avatar lukasdrude avatar martinxyz avatar mrkriss avatar n-gao avatar onurgu avatar qwlouse avatar rueberger avatar serv-inc avatar shwang avatar sveitser avatar tarik avatar thequilo avatar thomasjpfan avatar timmeinhardt avatar vnmabus avatar wmvanvliet avatar yk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sacred's Issues

Rename `Module`

The term module is used for pythons internal packaging system a lot and might lead to confusions. We should use a different term. Suggestions:

  • Component
  • Relic
  • Element
  • Unit
  • Ingredient
  • Part
  • Parcel

interface for adding files to an experiment

It would be very useful if one could add files to an experiment that can be then be stored by the observers alongside the information for the run.

I can think of several different types of files to add:

  1. dependencies:
  2. static files:
  3. dynamic files:
Dependencies

This includes additional source-files etc.. They would be part of the info about the experiment. So they could potentially be shared among many runs.

  • they exist as files already, so you want to specify them as a path
  • they should be added as part of the setup before initialization and of course also before the run is started
  • a possible interface could be a simple ex.add_dependency("/my/path/filname.foo")
Static Files

Files that are written once and never changed, but belong to the run not to the experiment. For example a report that is written after the run is finished would fall in this category. They might be a special case of Dynamic Files.

Dynamic Files

Files that are updated continuously. So they should be updated as part of the heartbeat. Examples include current weights or log files.

  • they are part of the run, so the interface should be part of the run object.
  • they might not exist yet, so it would be convenient to have an interface that provides a temporary named file to write to that is also tracked and deleted afterwards. Something like f = run.create_tracked_file(filename_in_db)
  • optionally you might want to create the file yourself. Then a simple run.track_file(filename, filename_in_db=None) might be sufficient.
  • Remembering the file handler in client code would be tedious. So maybe there should be a method f = run.get_tracked_file(filename_in_db) that returns the file if present or otherwise creates it?

Plot crashes on exit

Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/_pylab_helpers.py", line 86, in destroy_all
    manager.destroy()
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk3.py", line 427, in destroy
    self.canvas.destroy()
AttributeError: FigureManagerGTK3Agg instance has no attribute 'canvas'

Warn about new items

If a config update from the command line added a new entry we should issue a warning.

Don't warn about minor typechanges

there are warnings about typechanges in the config that are not really helpful:

  • changes from int64 to int (numpy type to python int)
  • changes from string to unicode

separate mongoDB entries for experiments and runs

This would:

  • remove duplication for saving stuff in the DB
  • make it easier to determine which runs are from the exact same experiment
  • better fit with the internal structure of sacred
  • make the run DB entries more comprehendable by shrinking them

Problems might be:

  • need database "joins" to get full info for a run
  • makes using the entries harder

Maybe also extract out host info?

Document experiment

  • How to import and instantiate
  • what decorators you can use
  • how to run
  • how to add observers

Lazy strings in updates

So far we support lazy strings (without quotes) only in direct assignments. E.g.: name=bob. But it would be nice to also have that in lists and dicts:

a=[bob,lisa,hugo]
b={name:bob,age:23}

instead of

a=["bob","lisa","hugo"]
b={"name":"bob","age":23}

This would be a big gain because entering quotes on the commandline is painful.

post-mortem debugging

Have the experiment upon failure fire up a pdb post-mortem debugger.
This should only happen on automain trigger.
This should be deactivateable with a commandline option.

Turn main into a regular command

main could maybe just be a regular command.
If so, we would have to define what is the default command, or do away with default commands altogether.
This should be decided soon, as it might break the API.

fixing lists in ConfigScope has unexpected behaviour

The current behaviour is to override assignments, which in this most basic case is fine:

@ConfigScope
def cfg():
    a = [1, 2]

cfg(fixed={a:[7, 8, 9]})['a']   # returns [7, 8, 9]

But as soon as you start modifying your list it gets weird:

@ConfigScope
def cfg():
    a = [1, 2]
    a += [3, 4]

cfg(fixed={a:[7, 8, 9]})['a']   # returns [7, 8, 9, 3, 4]

Similar things happen with append, insert, extend, *=, pop, remove, del, sort, reverse. This can be fixed by injecting an immutable list, which then simply ignores all the changes.

This removes the weirdness from before it also completely removes the possibility of adding something to a list afterwards. Also it seems a little inconsistent to me to have blocking dictionary that is open to changes apart from the forced ones, but have a list that is completely immutable. But for a lack of better ideas this is still the path I'll take.

Maybe allow the transfer of non-JSON objects between config scopes?

In case of multiple ConfigScopes we could allow using the non-JSON locals from one cfg in the others. This would ease implementing the network architecture module providing inputLayer and outputLayer for later usage in config scopes.

But it will complicate the implementation. Is it worth the trouble?

command line option for loglevel

provide an option to change loglevel on the commandline.
Maybe
-l LEVEL --logging LEVEL
where LEVEL can be either an int or the level string debug, info, warn, error, ...

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.