Skip to content

Commit

Permalink
remove from all code
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-ranjan committed Jun 27, 2024
1 parent 6b1d8d8 commit 7952c73
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions relbench/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Dataset:
def __init__(
self,
db: Database,
train_start_timestamp: Optional[pd.Timestamp],
val_timestamp: pd.Timestamp,
test_timestamp: pd.Timestamp,
max_eval_time_frames: int,
Expand All @@ -29,15 +28,12 @@ def __init__(
Args:
db (Database): The database object.
train_start_timestamp (pd.Timestamp, optional): If specified, we create
train table after the specified time.
val_timestamp (pd.Timestamp): The first timestamp for making val table.
test_timestamp (pd.Timestamp): The first timestamp for making test table.
max_eval_time_frames (int): The maximum number of unique timestamps used to build test and val tables.
"""
self._full_db = db
self.train_start_timestamp = train_start_timestamp
self.val_timestamp = val_timestamp
self.test_timestamp = test_timestamp
self.max_eval_time_frames = max_eval_time_frames
Expand Down Expand Up @@ -74,7 +70,6 @@ def validate_and_correct_db(self):

class RelBenchDataset(Dataset):
name: str
train_start_timestamp: Optional[pd.Timestamp] = None
val_timestamp: pd.Timestamp
test_timestamp: pd.Timestamp

Expand Down Expand Up @@ -111,7 +106,6 @@ def __init__(self, process=None) -> None:

super().__init__(
db,
self.train_start_timestamp,
self.val_timestamp,
self.test_timestamp,
self.max_eval_time_frames,
Expand Down
2 changes: 1 addition & 1 deletion relbench/data/task_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def train_table(self) -> Table:
if "train" not in self._cached_table_dict:
timestamps = pd.date_range(
start=self.dataset.val_timestamp - self.timedelta,
end=self.dataset.train_start_timestamp or self.dataset.db.min_timestamp,
end=self.dataset.db.min_timestamp,
freq=-self.timedelta,
)
if len(timestamps) < 3:
Expand Down
1 change: 0 additions & 1 deletion relbench/datasets/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __init__(
max_eval_time_frames = 1
super().__init__(
db=db,
train_start_timestamp=None,
val_timestamp=val_timestamp,
test_timestamp=test_timestamp,
max_eval_time_frames=max_eval_time_frames,
Expand Down

0 comments on commit 7952c73

Please sign in to comment.