Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MedMNIST/MedMNIST
/ functions
Functions
47 in github.com/MedMNIST/MedMNIST
⨍
Functions
47
◇
Types & classes
43
↓ 4 callers
Method
save
(self, folder, postfix="png", write_csv=True)
medmnist/dataset.py:151
↓ 3 callers
Method
__len__
(self)
examples/dataset_without_pytorch.py:80
↓ 3 callers
Method
__len__
(self)
medmnist/dataset.py:81
↓ 3 callers
Method
evaluate
(self, y_score, save_folder=None, run=None)
medmnist/evaluator.py:43
↓ 3 callers
Function
montage2d
(imgs, n_channels, sel)
medmnist/utils.py:24
↓ 3 callers
Method
parse_and_evaluate
Parse and evaluate a standard result file. A standard result file is named as: {flag}{size_flag}_{split}|*|.csv (|*| can be anyth
medmnist/evaluator.py:81
↓ 2 callers
Method
get_dummy_prediction
Return a dummy prediction of correct shape.
medmnist/evaluator.py:69
↓ 2 callers
Function
montage3d
(imgs, n_channels, sel)
medmnist/utils.py:47
↓ 2 callers
Function
readme
()
setup.py:15
↓ 2 callers
Function
save
Save the dataset as standard figures, which could be used for AutoML tools, e.g., Google AutoML Vision.
medmnist/__main__.py:66
↓ 2 callers
Function
save2d
(imgs, labels, img_folder, split, postfix, csv_path)
medmnist/utils.py:15
↓ 2 callers
Function
save3d
(imgs, labels, img_folder, split, postfix, csv_path)
medmnist/utils.py:38
↓ 2 callers
Function
save_fn
(imgs, labels, img_folder, split, postfix, csv_path, load_fn, save_fn)
medmnist/utils.py:56
↓ 2 callers
Function
save_frames_as_gif
(frames, path, duration=200)
medmnist/utils.py:93
↓ 1 callers
Method
_collate_fn
(data)
examples/dataset_without_pytorch.py:116
↓ 1 callers
Function
available
List all available datasets.
medmnist/__main__.py:5
↓ 1 callers
Function
download
Download all available datasets.
medmnist/__main__.py:21
↓ 1 callers
Method
download
(self)
examples/dataset_without_pytorch.py:100
↓ 1 callers
Method
download
(self)
medmnist/dataset.py:102
↓ 1 callers
Function
getACC
Accuracy metric. :param y_true: the ground truth labels, shape: (n_samples, n_labels) or (n_samples,) if n_labels==1 :param y_score: the predi
medmnist/evaluator.py:168
↓ 1 callers
Function
getAUC
AUC metric. :param y_true: the ground truth labels, shape: (n_samples, n_labels) or (n_samples,) if n_labels==1 :param y_score: the predicted
medmnist/evaluator.py:135
↓ 1 callers
Function
get_default_root
()
medmnist/info.py:9
↓ 1 callers
Method
get_standard_evaluation_filename
(self, metrics, run=None)
medmnist/evaluator.py:58
↓ 1 callers
Function
info
Print the dataset details given a subset flag.
medmnist/__main__.py:58
↓ 1 callers
Method
montage
(self, length=20, replace=False, save_folder=None)
medmnist/dataset.py:165
↓ 1 callers
Method
save
(self, folder, postfix="png", write_csv=True)
examples/dataset_without_pytorch.py:148
↓ 1 callers
Function
shuffle_iterator
(iterator)
examples/dataset_without_pytorch.py:328
Method
__getitem__
return: (without transform/target_transofrm) img: PIL.Image target: np.array of `L` (L=1 for single-label)
examples/dataset_without_pytorch.py:128
Method
__getitem__
return: (without transform/target_transofrm) img: an array of 1x28x28x28 or 3x28x28x28 (if `as_RGB=True`), in [0,1] t
examples/dataset_without_pytorch.py:183
Method
__getitem__
return: (without transform/target_transofrm) img: PIL.Image target: np.array of `L` (L=1 for single-label)
medmnist/dataset.py:131
Method
__getitem__
return: (without transform/target_transofrm) img: an array of 1x28x28x28 or 3x28x28x28 (if `as_RGB=True`), in [0,1] t
medmnist/dataset.py:190
Method
__init__
Args: split (str, required): 'train', 'val' or 'test' transform (callable, optional): data transformation
examples/dataset_without_pytorch.py:17
Method
__init__
(self, flag, split, size=None, root=DEFAULT_ROOT)
medmnist/evaluator.py:15
Method
__init__
Args: split (string): 'train', 'val' or 'test', required transform (callable, optional): A function/transform that t
medmnist/dataset.py:11
Method
__repr__
Adapted from torchvision.ss
examples/dataset_without_pytorch.py:83
Method
__repr__
Adapted from torchvision.
medmnist/dataset.py:85
Function
clean
Delete all downloaded npz from root.
medmnist/__main__.py:49
Function
evaluate
Parse and evaluate a standard result file. A standard result file is named as: {flag}{size_flag}_{split}|*|.csv (|*| can be anything)
medmnist/__main__.py:77
Function
get_loader
(dataset, batch_size)
examples/dataset_without_pytorch.py:316
Function
load_frames
(arr)
medmnist/utils.py:86
Method
montage
(self, length=20, replace=False, save_folder=None)
examples/dataset_without_pytorch.py:161
Method
montage
(self, length=20, replace=False, save_folder=None)
examples/dataset_without_pytorch.py:215
Method
montage
(self, length=20, replace=False, save_folder=None)
medmnist/dataset.py:224
Method
save
(self, folder, postfix="gif", write_csv=True)
examples/dataset_without_pytorch.py:201
Method
save
(self, folder, postfix="gif", write_csv=True)
medmnist/dataset.py:208
Function
save_results
Save ground truth and scores :param y_true: the ground truth labels, shape: (n_samples, n_classes) for multi-label, and (n_samples,) for other tas
medmnist/evaluator.py:198
Function
test
For developmemnt only.
medmnist/__main__.py:98