This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
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
7ab800f
commit b847e2e
Showing
1 changed file
with
19 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
import os | ||
|
||
from multiviewdata.torchdatasets import NoisyMNISTDataset | ||
|
||
|
||
def test_noisymnist(): | ||
from multiviewdata.torchdatasets import NoisyMNISTDataset | ||
a = NoisyMNISTDataset(os.getcwd(), download=True)[0] | ||
assert "index" in a | ||
assert "views" in a | ||
|
||
def test_tangledmnist(): | ||
from multiviewdata.torchdatasets import TangledMNISTDataset | ||
a = TangledMNISTDataset(os.getcwd(), download=True)[0] | ||
assert "index" in a | ||
assert "views" in a | ||
|
||
def test_splitmnist(): | ||
from multiviewdata.torchdatasets import SplitMNISTDataset | ||
a = SplitMNISTDataset(os.getcwd(), download=True)[0] | ||
assert "index" in a | ||
assert "views" in a | ||
|
||
def test_mfeat(): | ||
from multiviewdata.torchdatasets import MFeatDataset | ||
a = MFeatDataset(os.getcwd(), download=True)[0] | ||
assert "index" in a | ||
assert "views" in a |