Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Introduce more DL/TW sampling methods
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlan committed Sep 19, 2023
1 parent 688fda8 commit 036efd5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sampling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
from .SamplingMethod import SamplingMethod

SAMPLING_METHODS: dict[str, SamplingMethod] = {
"DL2": partial(custom_time_windows, tw_type="deadlines", tw_width=2),
"DL4": partial(custom_time_windows, tw_type="deadlines", tw_width=4),
"DL8": partial(custom_time_windows, tw_type="deadlines", tw_width=8),
"TW2": partial(custom_time_windows, tw_type="time_windows", tw_width=2),
"TW4": partial(custom_time_windows, tw_type="time_windows", tw_width=4),
"TW8": partial(custom_time_windows, tw_type="time_windows", tw_width=8),
"euro_neurips": euro_neurips,
f"{name}{tw_width}": partial(custom_time_windows, tw_type, tw_width)
for name, tw_type in [("DL", "deadlines"), ("TW", "time_windows")]
for tw_width in range(1, 9)
}
SAMPLING_METHODS["euro_neurips"] = euro_neurips

0 comments on commit 036efd5

Please sign in to comment.