<s> """<STR_LIT>""" <EOL> from __future__ import division , print_function , absolute_import <EOL> import numpy as np <EOL> import tflearn <EOL> import tflearn . datasets . mnist as mnist <EOL> X , Y , testX , testY = mnist . load_data ( one_hot = True ) <EOL> X = np . reshape ( X , ( - <NUM_LIT:1> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> testX = np . reshape ( testX , ( - <NUM_LIT:1> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> net = tflearn . input_data ( shape = [ None , <NUM_LIT> , <NUM_LIT> ] ) <EOL> net = tflearn . lstm ( net , <NUM_LIT> , return_seq = True ) <EOL> net = tflearn . lstm ( net , <NUM_LIT> ) <EOL> net = tflearn . fully_connected ( net , <NUM_LIT:10> , activation = '<STR_LIT>' ) <EOL> net = tflearn . regression ( net , optimizer = '<STR_LIT>' , <EOL> loss = '<STR_LIT>' , name = "<STR_LIT>" ) <EOL> model = tflearn . DNN ( net , tensorboard_verbose = <NUM_LIT:2> ) <EOL> model . fit ( X , Y , n_epoch = <NUM_LIT:1> , validation_set = <NUM_LIT:0.1> , show_metric = True , <EOL> snapshot_step = <NUM_LIT:100> ) </s>
