03e4692d86831b9a497e2ce90ce06b0df60b3ecb,benchmarks/python/run_rbm.py,,train,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,52

Before Change


          k, persistent, persist_from, learning_rate, momentum, l1, l2,
          method, seed, log_every, plot):
    Train an RBM
    train_set = np.loadtxt(train_path)
    target_psi = np.loadtxt(target_path)

    num_hidden = train_set.shape[-1] if num_hidden is None else num_hidden

After Change


    Train an RBM
    // train_set = np.loadtxt(train_path)
    // target_psi = np.loadtxt(target_path) if target_path is not None else None
    with gzip.open(train_path) as f:
        train_set = pickle.load(f, encoding="bytes")

    num_hidden = train_set.shape[-1] if num_hidden is None else num_hidden

    rbm = RBM(num_visible=train_set.shape[-1],
              num_hidden=num_hidden,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: PIQuIL/QuCumber
Commit Name: 03e4692d86831b9a497e2ce90ce06b0df60b3ecb
Time: 2018-05-23
Author: emerali@users.noreply.github.com
File Name: benchmarks/python/run_rbm.py
Class Name:
Method Name: train


Project Name: PIQuIL/QuCumber
Commit Name: ef419d7898b165aa74d95e68ca83ebfcfccd00f1
Time: 2018-07-23
Author: gtorlai@uwaterloo.ca
File Name: qucumber/test_grads_complex.py
Class Name:
Method Name:


Project Name: tensorflow/datasets
Commit Name: c28a63fa9d9fb9ba3cced7052ea243e8884f9bf1
Time: 2019-11-21
Author: supertux90@googlemail.com
File Name: tensorflow_datasets/image/deep_weeds.py
Class Name: DeepWeeds
Method Name: _generate_examples