MCPcopy Create free account
hub / github.com/apache/singa / check_dataset_exist

Function check_dataset_exist

examples/malaria_cnn/data/malaria.py:94–100  ·  view source on GitHub ↗
(dirpath)

Source from the content-addressed store, hash-verified

92
93
94def check_dataset_exist(dirpath):
95 if not os.path.exists(dirpath):
96 print(
97 'Please download the malaria dataset first'
98 )
99 sys.exit(0)
100 return dirpath
101
102
103def normalize(train_x, val_x):

Callers 2

load_train_dataFunction · 0.70
load_test_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected