dd8e4a102fa5997dbbffd0d48d65e8bf2acc6fd9,examples/chainer_mnist.py,,objective,#Any#,52
Before Change
// Optimizer --- We optimize the choice of optimizers as well as their learning rates.
optimizer_name = client.sample_categorical("optimizer", ["Adam", "MomentumSGD"])
if optimizer_name == "Adam":
adam_alpha = client.sample_loguniform("adam_apha", 1e-5, 1e-1)
optimizer = chainer.optimizers.Adam(alpha=adam_alpha)
else:
momentum_sgd_lr = client.sample_loguniform("momentum_sgd_lr", 1e-5, 1e-1)
optimizer = chainer.optimizers.MomentumSGD(lr=momentum_sgd_lr)
optimizer.setup(model)
// Dataset
rng = np.random.RandomState(0)
After Change
def objective(client):
// Model and optimizer
model = L.Classifier(create_model(client))
optimizer = create_optimizer(client, model)
// Dataset
rng = np.random.RandomState(0)
train, test = chainer.datasets.get_mnist()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pfnet/optuna
Commit Name: dd8e4a102fa5997dbbffd0d48d65e8bf2acc6fd9
Time: 2018-04-23
Author: t.akiba.65536@gmail.com
File Name: examples/chainer_mnist.py
Class Name:
Method Name: objective
Project Name: deepchem/deepchem
Commit Name: eaff287af9039f2ba1bbf86182a0457799de4033
Time: 2018-03-27
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/tensor_graph.py
Class Name: Submodel
Method Name: get_train_op
Project Name: tensorflow/tpu
Commit Name: 2feab9beb8c59f05ca2e1938f484b6bce638af47
Time: 2019-01-22
Author: frankchn@google.com
File Name: models/experimental/mask_rcnn/mask_rcnn_model.py
Class Name:
Method Name: _model_fn