<s> """<STR_LIT>""" <EOL> import logging , os <EOL> logging . basicConfig ( level = logging . INFO ) <EOL> from deepy . dataset import MnistDataset , MiniBatches <EOL> from deepy . networks import NeuralClassifier <EOL> from deepy . layers import Dense , Softmax , BatchNormalization <EOL> from deepy . trainers import SGDTrainer <EOL> default_model = os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" , "<STR_LIT>" ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> model = NeuralClassifier ( input_dim = <NUM_LIT> * <NUM_LIT> ) <EOL> model . stack ( Dense ( <NUM_LIT:100> , '<STR_LIT>' ) , <EOL> BatchNormalization ( ) , <EOL> Dense ( <NUM_LIT:100> , '<STR_LIT>' ) , <EOL> BatchNormalization ( ) , <EOL> Dense ( <NUM_LIT:100> , '<STR_LIT>' ) , <EOL> BatchNormalization ( ) , <EOL> Dense ( <NUM_LIT:10> , '<STR_LIT>' ) , <EOL> Softmax ( ) ) <EOL> trainer = SGDTrainer ( model ) <EOL> batches = MiniBatches ( MnistDataset ( ) , batch_size = <NUM_LIT> ) <EOL> trainer . run ( batches , controllers = [ ] ) <EOL> model . save_params ( default_model ) </s>
