Generative models for Reinvent
Project description
Introduction
This is a package to supply all the models used by REINVENT.
Develop
Setup environment
You can use Conda to create an environment with all the necessary packages installed.
$ conda env create -f reinvent_models
[...]
$ conda activate reinvent_models
Run tests
The tests use the unittest
package testing framework. Before you can run the tests make sure that you have created a
config.json
file in the reinvent_models/configs
directory. There is an example config in the same directory, which
you can base your own config off of. The easiest way is to make a copy of the example config file and name it config.json
.
Make sure that you set MAIN_TEST_PATH
to a non-existent directory; it is where temporary files will be written during the tests;
if it is set to an existing directory, that directory will be removed once the tests have finished.
For the unit tests in this repository, make sure the paths below are set:
"PRIOR_PATH": "/path/to/reinvents/prior"
"LIBINVENT_PRIOR_PATH": "/path/libinvent/prior"
Once you have created a config file, you can run the tests, located in the directory, by running
$ python main_test.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for reinvent_models-0.0.15rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b958d265393ccb3ea921d23a97cfe564438172f78be5a400f3a272d6c0800cea |
|
MD5 | d0e4d3e167a5f696446d279e6d74b19a |
|
BLAKE2b-256 | cde99be204583c881f3986b0be752eb1b69fcccb8dc7344c77f0db46f7e090f8 |
Hashes for reinvent_models-0.0.15rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ff01f25aa80df129366ea835b9059eaea6d1d0817e7495647d7fb38fbf70758 |
|
MD5 | 7d1fc6ec0a0cd692d13b249f4b06e660 |
|
BLAKE2b-256 | e92d79d4f5a39ee547bfb32b9e0958c6d4a201f6c44f25e2627caa56118cafc6 |