# This is an "autoencoder" version of the handwritten digits task in which the
# network has to regenerate the input over the output units through a
# bottleneck (i.e., a hidden layer with far fewer units)

addNet "digits: encoder" 64 10 64
loadExamples digits-enc.train_ex.txt -s train-enc
loadExamples digits-enc.test_ex.txt  -s test-enc

setObj learningRate   0.05
setObj reportInterval 1
setObj randRange      0.1
setObj testGroupCrit  1.0
setObj numUpdates     300
resetNet

setObj input.numColumns 8
setObj output.numColumns 8
autoPlot 10

loadWeights digits-enc.init.wt

graphObj error
