File tree Expand file tree Collapse file tree 3 files changed +4
-69
lines changed
Expand file tree Collapse file tree 3 files changed +4
-69
lines changed Original file line number Diff line number Diff line change 11__all__ = [
22 "USPSDataset0_6" ,
33 "USPSH5_Digit_7_9_Dataset" ,
4- "MNISTDataset0_3 " ,
4+ "MNISTDataset " ,
55 "Downloader" ,
66 "SVHNDataset" ,
77]
88
99from .download import Downloader
10- from .mnist_0_3 import MNISTDataset0_3
10+ from .mnist import MNISTDataset
1111from .svhn import SVHNDataset
1212from .usps_0_6 import USPSDataset0_6
1313from .uspsh5_7_9 import USPSH5_Digit_7_9_Dataset
Original file line number Diff line number Diff line change 66from .datasources import MNIST_SOURCE
77
88
9- class MNISTDataset0_3 (Dataset ):
9+ class MNISTDataset (Dataset ):
1010 """
11- A custom Dataset class for loading a subset of the MNIST dataset containing digits 0 to 3.
11+ A custom Dataset class for loading a subset of the MNIST dataset
1212 Parameters
1313 ----------
1414 data_path : Path
@@ -61,7 +61,6 @@ def __init__(
6161 self .idx = sample_ids
6262 self .train = train
6363 self .transform = transform
64- self .num_classes = 4
6564
6665 self .images_path = self .mnist_path / (
6766 MNIST_SOURCE ["train_images" ][1 ] if train else MNIST_SOURCE ["test_images" ][1 ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments