def prepare(self):
self.output_dim = <NUM_LIT:10><EOL>self.encoder = Chain(self.input_dim).stack(Dense(self.internal_layer_size, '<STR_LIT>'))<EOL>self.decoder = Chain(self.internal_layer_size).stack(Dense(self.input_dim))<EOL>self.classifier = Chain(self.internal_layer_size).stack(Dense(<NUM_LIT:50>, '<STR_LIT>'),<EOL>Dense(self.output_dim),<EOL>Softmax())<EOL>self.register_inner_layers(self.encoder, self.decoder, self.classifier)<EOL>self.target_input = T.ivector('<STR_LIT:target>')<EOL>self.register_external_inputs(self.target_input)<EOL>
All codes that create parameters should be put into 'setup' function.