Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bpkroth committed Jan 20, 2025
1 parent c143d64 commit f72bdfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mlos_bench/mlos_bench/tunables/tunable.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ def is_special(self) -> bool:
@property
def weights(self) -> list[float] | None:
"""
Get the weights of the categories or special values of the Tunable. Return None
if there are none.
Get the weights of the categories or special values of the Tunable. Return
None if there are none.
Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions mlos_bench/mlos_bench/tunables/tunable_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def assign(self, param_values: Mapping[str, TunableValue]) -> "TunableGroups":
param_values : Mapping[str, TunableValue]
Dictionary mapping Tunable parameter names to new values.
As a special behavior when the mapping is empty the method will restore
the default values rather than no-op.
As a special behavior when the mapping is empty (``{}``) the method will
restore the default values rather than no-op.
This allows an empty dictionary in json configs to be used to reset the
tunables to defaults without having to copy the original values from the
tunable_params definition.
Expand Down

0 comments on commit f72bdfb

Please sign in to comment.