Skip to content

Commit

Permalink
Use name and value instead of the string representation of assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
g-votte committed Aug 14, 2021
1 parent 1c0e15f commit b2085a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/suggestion/v1beta1/optuna/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _tell(self, trials):

def _get_assignments_key(self, assignments):
assignments = sorted(assignments, key=lambda a: a.name)
assignments_str = [str(a) for a in assignments]
assignments_str = [f"{a.name}:{a.value}" for a in assignments]
return ",".join(assignments_str)

def _get_optuna_search_space(self):
Expand Down

0 comments on commit b2085a6

Please sign in to comment.