396120ae1659d2567969034b2038148d271047c7,optuna/storages/redis.py,RedisStorage,get_study_id_from_trial_id,#RedisStorage#Any#,226
Before Change
// type: (int) -> int
study_id_pkl = self._redis.get("trial_id:{:010d}:study_id".format(trial_id))
assert study_id_pkl is not None
return pickle.loads(study_id_pkl)
def get_study_name_from_id(self, study_id):
// type: (int) -> str
After Change
// type: (int) -> int
study_id_pkl = self._redis.get("trial_id:{:010d}:study_id".format(trial_id))
if study_id_pkl is None:
raise KeyError("No such trial: {}.".format(trial_id))
return pickle.loads(study_id_pkl)
def get_study_name_from_id(self, study_id):
// type: (int) -> str
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: pfnet/optuna
Commit Name: 396120ae1659d2567969034b2038148d271047c7
Time: 2020-04-30
Author: ytsmiling@gmail.com
File Name: optuna/storages/redis.py
Class Name: RedisStorage
Method Name: get_study_id_from_trial_id
Project Name: pfnet/optuna
Commit Name: 396120ae1659d2567969034b2038148d271047c7
Time: 2020-04-30
Author: ytsmiling@gmail.com
File Name: optuna/storages/redis.py
Class Name: RedisStorage
Method Name: get_study_name_from_id
Project Name: pfnet/optuna
Commit Name: 396120ae1659d2567969034b2038148d271047c7
Time: 2020-04-30
Author: ytsmiling@gmail.com
File Name: optuna/storages/redis.py
Class Name: RedisStorage
Method Name: get_study_direction