October 2018
Intermediate to advanced
340 pages
7h 56m
English
For testing the CNTK training model, we need to load Test-28x28_cntk__text.txt in the path retrieved from the MNIST dataset. We need to set up MinibatchSource to read our test data, and we also need to assign input maps to the test data:
# Load test data path = "C:\\Users\\CNTK\\Examples\\Image\\DataSets\\MNIST\\Test-28x28_cntk_text.txt"#Reading of data using MinibatchSourcereader_test_val = MinibatchSource(CTFDeserializer(path, StreamDefs( features=StreamDef(field='features', shape=input_dimension), labels=StreamDef(field='labels', shape=number_output_classes))))#mapping of input dataset using feature & labelinput_map = { feature_val: reader_test_val.streams.features, label_val: reader_test_val.streams.labels }
The ...
Read now
Unlock full access