0c34ab098abd437e8ac385a5b284f0ef314f465a,tests/storage_tests/test_rdb.py,TestRDBStorage,test_get_trial,#TestRDBStorage#,255
Before Change
datetime_start=datetime_start,
datetime_complete=None)
uniform = UniformDistribution(low=1., high=2.)
categorical = CategoricalDistribution(choices=("Otemachi", "Tokyo", "Ginza"))
storage.set_study_param_distribution(study_id, "x", uniform)
storage.set_study_param_distribution(study_id, "y", categorical)
storage.set_trial_value(trial_id, 1.0)
storage.set_trial_state(trial_id, trial_module.State.COMPLETE)
storage.set_trial_param(trial_id, "x", 0.5)
After Change
def test_get_trial(self):
// type: () -> None
storage = self.create_test_storage()
study_id = storage.create_new_study_id()
self.set_distributions(storage, study_id, self.sample_distributions)
trial_id = TestRDBStorage.create_new_trial_with_sample_trial(
storage, study_id, self.sample_distributions, self.sample_trials[0])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: pfnet/optuna
Commit Name: 0c34ab098abd437e8ac385a5b284f0ef314f465a
Time: 2018-03-13
Author: sano@preferred.jp
File Name: tests/storage_tests/test_rdb.py
Class Name: TestRDBStorage
Method Name: test_get_trial
Project Name: pfnet/optuna
Commit Name: 0c34ab098abd437e8ac385a5b284f0ef314f465a
Time: 2018-03-13
Author: sano@preferred.jp
File Name: tests/storage_tests/test_rdb.py
Class Name: TestRDBStorage
Method Name: test_set_trial_param
Project Name: pfnet/optuna
Commit Name: 0c34ab098abd437e8ac385a5b284f0ef314f465a
Time: 2018-03-13
Author: sano@preferred.jp
File Name: tests/storage_tests/test_rdb.py
Class Name: TestRDBStorage
Method Name: test_set_study_param_distribution
Project Name: pfnet/optuna
Commit Name: 0c34ab098abd437e8ac385a5b284f0ef314f465a
Time: 2018-03-13
Author: sano@preferred.jp
File Name: tests/storage_tests/test_rdb.py
Class Name: TestRDBStorage
Method Name: test_get_trial