-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e15a80b
commit 8148a14
Showing
3 changed files
with
20 additions
and
28 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 |
---|---|---|
@@ -1,35 +1,37 @@ | ||
from pathlib import Path | ||
from typing import Optional | ||
|
||
from jaxonloader.utils import ( | ||
get_data_path, | ||
jaxonloader_cache, | ||
) | ||
|
||
|
||
@jaxonloader_cache(dataset_name="mnist") | ||
def download_mnist(*, target_path: Optional[str]) -> None: | ||
return | ||
def download_mnist(*, target_path: Optional[str]) -> Path: | ||
return get_data_path("mnist", target_path) | ||
|
||
|
||
@jaxonloader_cache(dataset_name="titanic") | ||
def download_titanic(*, target_path: Optional[str]) -> None: | ||
pass | ||
def download_titanic(*, target_path: Optional[str]) -> Path: | ||
return get_data_path("titanic", target_path) | ||
|
||
|
||
@jaxonloader_cache(dataset_name="hms") | ||
def download_hms(*, target_path: Optional[str]) -> None: | ||
pass | ||
def download_hms(*, target_path: Optional[str]) -> Path: | ||
return get_data_path("hms", target_path) | ||
|
||
|
||
@jaxonloader_cache(dataset_name="cifar10") | ||
def download_cifar10(*, target_path: Optional[str]) -> None: | ||
pass | ||
def download_cifar10(*, target_path: Optional[str]) -> Path: | ||
return get_data_path("cifar10", target_path) | ||
|
||
|
||
@jaxonloader_cache(dataset_name="cifar100") | ||
def download_cifar100(*, target_path: Optional[str]) -> None: | ||
pass | ||
def download_cifar100(*, target_path: Optional[str]) -> Path: | ||
return get_data_path("cifar100", target_path) | ||
|
||
|
||
@jaxonloader_cache(dataset_name="tinyshakespeare") | ||
def download_tinyshakespeare(*, target_path: Optional[str]) -> None: | ||
pass | ||
def download_tinyshakespeare(*, target_path: Optional[str]) -> Path: | ||
return get_data_path("tinyshakespeare", target_path) |
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