-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancements for wild time benchmarks (#305)
This PR introduces three enhancements for the WildTime benchmarks. Here they are: 1. So far, all datasets except fMoW save data using only the year as the timestamp (finer information is unavailable). Since years can be pre-1970, these are mapped to days from 1/1/1970 (e.g. in YB 1930->1/1/1970, 1931->2/1/1970). fMoW, on the other hand, has the exact timestamps available and, before this PR, was used to save files. Now, to ensure consistency, fMoW also considers only the year. To use the entire timestamp, you can use the option `--daily` 2. In addition to the training dataset, wildtime provides a validation and test dataset. Since we do not have these concepts in modyn, all datasets can be used for training by specifying the `--all` option. 3. In Modyn, training is initiated by a sample that satisfies the triggering condition. Consequently, samples from the last year are never used since no sample from the following year initiates its training. By specifying the `--dummyyear` parameter, it is possible to add a sample to the year following the last one to enable training on the last year's data. For example, arXiv has data up to 2022. As a result, since there is no 2023 point, training on the 2022 data never happens. With this addition, a 2023 sample is added so that the 2022 data can be used.
- Loading branch information
1 parent
cc139e0
commit af063be
Showing
6 changed files
with
118 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# pylint: disable=W0223 | ||
from typing import Any | ||
|
||
import torch | ||
|