example dataset and setup?

Jun 20, 2015 at 5:39 PM
Hey guys, totally new to cntk. I just tested this config file on mnist and encountered problem ("cn.exe has stopped working"). I see command line msg like

<<<<<<< RAW CONFIG (VARIABLES NOT RESOLVED) <<<<<<<
RAW CONFIG WITH ALL VARIABLES RESOLVED >>>>>>
So it's kind of confusing.......

Platform : Win 7, CUDA 7.0.17

config file :
_
command=mnistTrain

mnistTrain=[
    action=train
    
    SimpleNetworkBuilder=[
        layerSizes=784:300:10
        trainingCriterion=CrossEntropyWithSoftmax
        evalCriterion=ErrorPrediction
        layerTypes=Sigmoid
        initValueScale=1.0
        applyMeanVarNorm=true
        uniformInit=true
        needPrior=false
    ]
    
    SGD=[
        modelPath=c:\cntk\model\mnist.cn
        learningRatesPerMB=0.001
        minibatchSize=32
        epochSize=10000
        maxEpochs=50
    ]
    
    reader=[
        readerType=UCIFastReader
        file=c:\cntk\data\mnist\MNIST_small_Stream.txt
        
        features=[
            dim=784
            start=1
        ]
        
        labels=[
            dim=1
            start=0
            labelDim=10
            labelMappingFile=c:\cntk\data\mnist\mnistlabels.txt
        ]
    ]
]
_
Coordinator
Jun 20, 2015 at 7:27 PM
If nothing is displayed under the RAW CONFIG (VARIABLES NOT RESOLVED) section then the config file is not loaded. you need to use
cn.exe configFile=yourconfigfile
and specify the correct path for your config file.

In addition, the UCIFastReader requires one sample per row and the first column to be the label. You also need to make sure you have a label list file (just list 1 to 10 (or o depends on your label) and one for each row).