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 6475047 commit 85b67e5
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/beignet/datasets/_chen_sabdab_dataset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
from pathlib import Path
from typing import Callable

from beignet.transforms import Transform

from ._tdc_dataset import TDCDataset


class ChenSAbDabDataset(TDCDataset):
def __init__(
self,
root: str | Path,
*,
download: bool = False,
transform: Callable | Transform | None = None,
target_transform: Callable | Transform | None = None,
):
r"""
Parameters
----------
root : str | Path
Root directory of dataset.
download: bool
If `True`, downloads the dataset to the root directory. If dataset
already exists, it is not redownloaded. Default, `False`.
transform : Callable | Transform | None
Transforms the input.
target_transform : Callable | Transform | None
Transforms the target.
"""
super().__init__(
root=root,
download=download,
identifier=4167164,
suffix="tsv",
checksum="md5:3b58b73e0d5371a2ccc865ca045a2061",
x_keys=["X"],
y_keys=["Y"],
transform=transform,
target_transform=target_transform,
)

0 comments on commit 85b67e5

Please sign in to comment.