feb60bf8c5e8e2ec480b265ab047547856227f76,examples/dask_ml_simple.py,,,#,50
Before Change
cluster = LocalCluster(n_workers=4, threads_per_worker=2, local_directory="/tmp")
client = Client(cluster)
import optuna
study = optuna.create_study(direction="maximize")
study.optimize(objective, n_trials=100)
print(study.best_trial)
After Change
if __name__ == "__main__":
import optuna
study = optuna.create_study(direction="maximize")
// This is used to initialize the workers that will be used by Dask-ML
cluster = LocalCluster(n_workers=4, threads_per_worker=2, local_directory="/tmp")
with Client(cluster) as client:
study.optimize(objective, n_trials=100)
print("Number of finished trials: ", len(study.trials))
print("Best trial:")
trial = study.best_trial
print(" Value: ", trial.value)
print(" Params: ")
for key, value in trial.params.items():
print(" {}: {}".format(key, value))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 21
Instances
Project Name: pfnet/optuna
Commit Name: feb60bf8c5e8e2ec480b265ab047547856227f76
Time: 2019-08-22
Author: Anes.Benmerzoug@gmail.com
File Name: examples/dask_ml_simple.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: 402e0fefeffe748dfe1a049f86da02e536b9a0b2
Time: 2020-09-17
Author: toshihiko.yanase@gmail.com
File Name: examples/xgboost_simple.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: afeb9d3d4e6e469a61358f91bf68398c711bbc62
Time: 2020-02-21
Author: himkt@cookpad.com
File Name: examples/allennlp_simple.py
Class Name:
Method Name: