d6607122af370d39f60c54193e70150ec5d430ef,examples/example_mnist_rbm.py,,,#,9

Before Change


    learning_rate = 0.001
    mc_steps = 1

    filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), "mnist", "mnist.h5")
    shuffled_filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), "mnist", "shuffled_mnist.h5")

    // shuffle the data
    shuffler = batch.DataShuffler(filepath, shuffled_filepath, complevel=0)
    shuffler.shuffle()

    // set up the reader to get minibatches
    data = batch.Batch(shuffled_filepath,
                       "train/images",

After Change


    learning_rate = 0.001
    mc_steps = 1

    paysage_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    filepath = os.path.join(paysage_path, "mnist", "mnist.h5")
    shuffled_filepath = os.path.join(paysage_path, "mnist", "shuffled_mnist.h5")

    // shuffle the data
    if not os.path.exists(shuffled_filepath):
        shuffler = batch.DataShuffler(filepath, shuffled_filepath, complevel=0)
        shuffler.shuffle()

    // set up the reader to get minibatches
    data = batch.Batch(shuffled_filepath,
                       "train/images",
                       batch_size,
                       transform=batch.binarize_color,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


Project Name: drckf/paysage
Commit Name: d6607122af370d39f60c54193e70150ec5d430ef
Time: 2017-01-27
Author: charlesfisher@Charless-MacBook-Pro.local
File Name: examples/example_mnist_rbm.py
Class Name:
Method Name:


Project Name: drckf/paysage
Commit Name: d6607122af370d39f60c54193e70150ec5d430ef
Time: 2017-01-27
Author: charlesfisher@Charless-MacBook-Pro.local
File Name: examples/example_mnist_grbm.py
Class Name:
Method Name:


Project Name: drckf/paysage
Commit Name: d6607122af370d39f60c54193e70150ec5d430ef
Time: 2017-01-27
Author: charlesfisher@Charless-MacBook-Pro.local
File Name: examples/example_mnist_hopfield.py
Class Name:
Method Name: