-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
123 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from pathlib import Path | ||
from typing import Callable | ||
|
||
from beignet.transforms import Transform | ||
|
||
from ._tdc_dataset import TDCDataset | ||
|
||
|
||
class BindingDBIC50Dataset(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=4291560, | ||
suffix="csv", | ||
checksum="md5:a6ca198002c335aa9a30248cf3795413", | ||
x_keys=["X1", "X2"], | ||
y_keys=["Y"], | ||
transform=transform, | ||
target_transform=target_transform, | ||
) |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from pathlib import Path | ||
from typing import Callable | ||
|
||
from beignet.transforms import Transform | ||
|
||
from ._tdc_dataset import TDCDataset | ||
|
||
|
||
class BindingDBKiDataset(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=4291556, | ||
suffix="csv", | ||
checksum="md5:187d6c8926c608e24f4469373811806d", | ||
x_keys=["X1", "X2"], | ||
y_keys=["Y"], | ||
transform=transform, | ||
target_transform=target_transform, | ||
) |
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