2e09730ac9259bc778a96921adf3427966262e98,examples/chainer_mnist.py,,create_model,#Any#,39

Before Change



def create_model(trial):
    // We optimize the numbers of layers and their units.
    n_layers = int(trial.suggest_uniform("n_layers", 1, 4))

    layers = []
    for i in range(n_layers):
        n_units = int(trial.suggest_loguniform("n_units_l{}".format(i), 4, 128))

After Change



def create_model(trial):
    // We optimize the numbers of layers and their units.
    n_layers = trial.suggest_int("n_layers", 1, 3)

    layers = []
    for i in range(n_layers):
        n_units = int(trial.suggest_loguniform("n_units_l{}".format(i), 4, 128))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: 2e09730ac9259bc778a96921adf3427966262e98
Time: 2018-08-16
Author: toshihiko.yanase@gmail.com
File Name: examples/chainer_mnist.py
Class Name:
Method Name: create_model


Project Name: pfnet/optuna
Commit Name: 655edbb455293ddc7a7a72ee2f48f694c7216d3a
Time: 2018-07-29
Author: toshihiko.yanase@gmail.com
File Name: examples/chainer_pruner.py
Class Name: Objective
Method Name: create_model


Project Name: pfnet/optuna
Commit Name: 2e09730ac9259bc778a96921adf3427966262e98
Time: 2018-08-16
Author: toshihiko.yanase@gmail.com
File Name: examples/xgboost_cancer.py
Class Name:
Method Name: objective


Project Name: pfnet/optuna
Commit Name: 2e09730ac9259bc778a96921adf3427966262e98
Time: 2018-08-16
Author: toshihiko.yanase@gmail.com
File Name: examples/chainermn_mnist.py
Class Name:
Method Name: create_model