ce0325cb72000af404c2c0b4c3ef1644a66bc0e4,examples/mnist.py,,get_new_model,#Any#Any#,76

Before Change


    new_model.tau = model.tau
    train_data = train_data + train_data
    random.shuffle(train_data)
    acc = new_model.train(train_data, batch_size=100)
    return acc, new_model


def sequential_sgd(model, train_data, check_data, n_iter=5):
    print(model.widths)

After Change


    new_model.tau = model.tau
    train_data = train_data + train_data
    random.shuffle(train_data)
    acc = 0.0
    for X, y in train_data:
        acc += new_model.update(Example.dense(model.nr_class, X, y))
    return acc / len(train_data), new_model


def sequential_sgd(model, train_data, check_data, n_iter=5):
    print(model.widths)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: explosion/thinc
Commit Name: ce0325cb72000af404c2c0b4c3ef1644a66bc0e4
Time: 2016-08-23
Author: honnibal+gh@gmail.com
File Name: examples/mnist.py
Class Name:
Method Name: get_new_model


Project Name: rlworkgroup/garage
Commit Name: 722552e32c4c218b00abcdb1464dd2dbcbfa0f2f
Time: 2020-06-01
Author: ericyihc@usc.edu
File Name: src/garage/np/algos/cem.py
Class Name: CEM
Method Name: train


Project Name: rlworkgroup/garage
Commit Name: 722552e32c4c218b00abcdb1464dd2dbcbfa0f2f
Time: 2020-06-01
Author: ericyihc@usc.edu
File Name: src/garage/np/algos/cma_es.py
Class Name: CMAES
Method Name: train