facebookarchive / planout

PlanOut is a library and interpreter for designing online experiments.
http://facebook.github.io/planout
Other
1.68k stars 216 forks source link

Serialized format for Namespaces? #122

Closed burin closed 7 years ago

burin commented 7 years ago

Is there an equivalent to the Planout experiment serialized JSON for namespaces?

Planout4j has something close.

I'm interested in defining and manage namespaces somewhere, and having an interpreter take in some JSON and construct an instance of a namespace (the same way you would create an Experiment instance from JSON).

eytan commented 7 years ago

Hi @burin, no, there isn't. In general I wouldn't recommend PlanOut4J implementation's namespace implementation. In particular, there is no reason to store the experiment add and remove operations, as this can get computationally expensive / slow if you run a lot of experiments in the same namespace.

You might be better off using a database or SQLAlchemy to store experiments associated w/ a namespace, and then also store in the db/orm the segment->experiment mapping. This would also make creating GUIs a lot easier relative to the yaml approach.

burin commented 7 years ago

Thanks @eytan! Thanks for the tip about using something else to manage namespaces/segment mapping.

I wanted to use the planout namespaces for various reasons (including ability to point to the planout docs), but I guess it only makes sense if you "bake in" the experiment/namespaces in the code, which in my case I wouldn't be doing.