Skip to content

Commit

Permalink
datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00b1 committed Jul 17, 2024
1 parent 02d6f02 commit c505cdd
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/beignet/datasets/_sabdab_dataset.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from pathlib import Path
from typing import Callable

from torch.utils.data import Dataset

from beignet.transforms import Transform

from ._tdc_dataset import TDCDataset


class SAbDabDataset(Dataset):
class SAbDabDataset(TDCDataset):
def __init__(
self,
root: str | Path,
Expand All @@ -32,10 +32,14 @@ def __init__(
target_transform : Callable | Transform | None
Transforms the target.
"""
raise NotImplementedError

def __getitem__(self, index: int):
raise NotImplementedError

def __len__(self) -> int:
raise NotImplementedError
super().__init__(
root=root,
download=download,
identifier=4167357,
suffix="csv",
checksum="md5:f4d0dba68859f7ae2a042bd90423b22b",
x_keys=["X1", "X2"],
y_keys=["Y"],
transform=transform,
target_transform=target_transform,
)

0 comments on commit c505cdd

Please sign in to comment.