f70fb61f674e0482c145633d8e485ea94f319e3d,examples/chainer/chainer_integration.py,,,#,105

Before Change


if __name__ == "__main__":
    study = optuna.create_study(direction="maximize", pruner=optuna.pruners.MedianPruner())
    study.optimize(objective, n_trials=100)
    pruned_trials = [t for t in study.trials if t.state == optuna.trial.TrialState.PRUNED]
    complete_trials = [t for t in study.trials if t.state == optuna.trial.TrialState.COMPLETE]
    print("Study statistics: ")
    print("  Number of finished trials: ", len(study.trials))
    print("  Number of pruned trials: ", len(pruned_trials))
    print("  Number of complete trials: ", len(complete_trials))

After Change




if __name__ == "__main__":
    study = optuna.create_study(direction="maximize", pruner=optuna.pruners.MedianPruner())
    study.optimize(objective, n_trials=100)
    pruned_trials = study.get_trials(deepcopy=False, states=[TrialState.PRUNED])
    complete_trials = study.get_trials(deepcopy=False, states=[TrialState.COMPLETE])
    print("Study statistics: ")
    print("  Number of finished trials: ", len(study.trials))
    print("  Number of pruned trials: ", len(pruned_trials))
    print("  Number of complete trials: ", len(complete_trials))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 29

Instances


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/chainer/chainer_integration.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/keras/keras_integration.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/pytorch/pytorch_distributed_simple.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/chainer/chainer_integration.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/mxnet/mxnet_integration.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/chainer/chainermn_integration.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/simple_pruning.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f70fb61f674e0482c145633d8e485ea94f319e3d
Time: 2021-02-25
Author: makadiyajyot2121@gmail.com
File Name: examples/pytorch/pytorch_simple.py
Class Name:
Method Name: