-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
elif data['type'] == 'PERIODICAL': | ||
self.brackets[s].set_config_perf( | ||
int(i), data['parameter_id'], data['sequence'], value) | ||
if data['type'] == 'REQUEST_PARAMETER': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abstract these command into a command(class instead of using string)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thx!
self.completed_hyper_configs.append(data) | ||
elif data['type'] == 'PERIODICAL': | ||
self.brackets[bracket_id].set_config_perf(int(i), data['parameter_id'], data['sequence'], value) | ||
if data['type'] == 'REQUEST_PARAMETER': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thx!
# and PERIODICAL metric are independent, thus, not comparable. | ||
self.brackets[bracket_id].set_config_perf(int(i), data['parameter_id'], sys.maxsize, value) | ||
self.completed_hyper_configs.append(data) | ||
elif data['type'] == 'PERIODICAL': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thx!
value = extract_scalar_reward(data['value']) | ||
bracket_id, i, _ = data['parameter_id'].split('_') | ||
bracket_id = int(bracket_id) | ||
if data['type'] == 'FINAL': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thx!
# if there is no running parameter_id, self.job_id_para_id_map[trial_job_id] == None | ||
# new trial job is added to this dict and finished trial job is removed from it. | ||
self.job_id_para_id_map = dict() | ||
|
||
def load_checkpoint(self): | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load_checkpoint and save_checkpoint can be removed if they are empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, thx!
self.job_id_para_id_map = dict() | ||
# record the unsatisfied parameter request from trial jobs | ||
self.unsatisfied_jobs = [] | ||
|
||
def load_checkpoint(self): | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load_checkpoint and save_checkpoint can be removed if they are empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, thx!
reward = -value | ||
else: | ||
reward = value | ||
assert 'parameter_id' in data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could assert after 591 line.
No description provided.