Skip to content

Commit

Permalink
Revert "add quantized values to the default tunable groups fixture"
Browse files Browse the repository at this point in the history
This reverts commit cdd71e1.
  • Loading branch information
bpkroth committed Jul 23, 2024
1 parent 828e87c commit 1c2eaf2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_smac_optimization_loop(mock_env_no_noise: MockEnv, smac_opt: MlosCoreOp
"vmSize": "Standard_B2s",
"idle": "mwait",
"kernel_sched_migration_cost_ns": 297669,
"kernel_sched_latency_ns": 290365100,
"kernel_sched_latency_ns": 290365137,
}
assert score == pytest.approx(expected_score, 0.01)
assert tunables.get_param_values() == expected_tunable_values
5 changes: 3 additions & 2 deletions mlos_bench/mlos_bench/tests/tunable_groups_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

# pylint: disable=redefined-outer-name

# TODO: Add quantized tunables here for better test coverage.

TUNABLE_GROUPS_JSON = """
{
"provision": {
Expand Down Expand Up @@ -60,8 +62,7 @@
"type": "int",
"default": 2000000,
"range": [0, 1000000000],
"log": false,
"quantization": 100
"log": false
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def configuration_space() -> ConfigurationSpace:
spaces[kernel_sched_migration_cost_ns_type].default_value = TunableValueKind.SPECIAL
spaces[kernel_sched_migration_cost_ns_type].probabilities = (0.5, 0.5)
spaces["kernel_sched_latency_ns"].default_value = 2000000
spaces["kernel_sched_latency_ns"].q = 100

spaces.add_condition(
EqualsCondition(
Expand Down

0 comments on commit 1c2eaf2

Please sign in to comment.