Skip to content

Commit

Permalink
tdc
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00b1 committed Jul 15, 2024
1 parent 00d5fc9 commit c4a1a48
Show file tree
Hide file tree
Showing 32 changed files with 411 additions and 297 deletions.
2 changes: 0 additions & 2 deletions docs/reference/beignet.io.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# beignet.io

::: beignet.io.ThreadSafeFile
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ nav:
- "Transformations": "reference/features/geometry/transformations.md"
- "beignet.func":
- "Molecular dynamics": "reference/func/molecular-dynamics.md"
- "beignet.io": "reference/operators.io.md"
- "beignet.io": "reference/beignet.io.md"
- "beignet.transforms":
- "General-purpose": "reference/transforms/general-purpose.md"
plugins:
Expand Down
24 changes: 14 additions & 10 deletions src/beignet/datasets/_astrazeneca_clearance_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 AstraZenecaClearanceDataset(Dataset):
class AstraZenecaClearanceDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
24 changes: 14 additions & 10 deletions src/beignet/datasets/_astrazeneca_lipophilicity_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 AstraZenecaLipophilicityDataset(Dataset):
class AstraZenecaLipophilicityDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
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 AstraZenecaPlasmaProteinBindingRateDataset(Dataset):
class AstraZenecaPlasmaProteinBindingRateDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
24 changes: 14 additions & 10 deletions src/beignet/datasets/_bindingdb_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 BindingDBDataset(Dataset):
class BindingDBDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
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 BroccatelliPGlycoproteinInhibitionDataset(Dataset):
class BroccatelliPGlycoproteinInhibitionDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
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 CarbonMangelsCytochromeP4502C9SubstrateDataset(Dataset):
class CarbonMangelsCytochromeP4502C9SubstrateDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
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 CarbonMangelsCytochromeP4502D6SubstrateDataset(Dataset):
class CarbonMangelsCytochromeP4502D6SubstrateDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
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 CarbonMangelsCytochromeP4503A4SubstrateDataset(Dataset):
class CarbonMangelsCytochromeP4503A4SubstrateDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
24 changes: 14 additions & 10 deletions src/beignet/datasets/_clintox_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 ClinToxDataset(Dataset):
class ClinToxDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
24 changes: 14 additions & 10 deletions src/beignet/datasets/_davis_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 DAVISDataset(Dataset):
class DAVISDataset(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=0,
suffix="",
checksum="",
x_keys=[""],
y_keys=[""],
transform=transform,
target_transform=target_transform,
)
Loading

0 comments on commit c4a1a48

Please sign in to comment.