Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
algorithms
example_data
utils
.gitignore
CNNGuider.py
README.md
calc_time.py
concat_experiment.py
config.py
data_loader.py
example.py
experiments.py
experiments_roger.py
grammar.py
guided_synthetic_data.py
image_patch_experiment.py
initialization.py
models.py
motion_experiment.py
observations.py
parallel.py
parser.out
parsetab.py
parsing.py
predictive_distributions.py
presentation.py
recursive.py
scoring.py
single_process.py
train_guider.py

README.md

NGSI Probabilistic Matrix Factorization Code

Basic Requirements

    tensorflow == 1.8.0 or tensorflow-gpu == 1.8.0 (recommended)
    matplotlib
    ply
    progressbar
    sklearn
    CUDA compatible GPU x1 (recommended)

Pre-training the neural guider

For pre-training of the neural guider, run:

    python3 train_guider.py

The saved model could be found in ./saved_model/d

Neurally Guided Structural Inference - Synthetic data

First, use this command to generate synthetic data jobs:

    python3 guided_synthetic_data.py generate

Now you are supposed to find generated jobs in ./data/results.

For a specific item X of the experiment in {"synthetic_1.0_bmf", "synthetic_1.0_gsm", "synthetic_1.0_irm", "synthetic_1.0_mog", "synthetic_1.0_sparse", "synthetic_1.0_bctf", "synthetic_1.0_chain", "synthetic_1.0_ibp", "synthetic_1.0_kf", "synthetic_1.0_pmf"}, run:

    python3 experiments.py everything X

Neurally Guided Structural Inference - Real World-like Data

We take the image patch analysis task as an example:

Image Patch

First, use this command to generate a job:

    python3 image_patch_experiment.py

Now you are supposed to find the generated job in ./data/results/image_patch Then, run

    python3 experiments.py everything image_patch

to reproduce the results.

Further Parameter Adjusting

You can find the search settings in ./experiments.py. Also, if you would like to run Roger's version of search, you can replace ./experiments.py with ./experiments_roger.py

Acknowledgements

Much of the code is borrowed from https://github.com/rgrosse/compositional_structure_search. We thank Roger for his great job!

You can’t perform that action at this time.