Module Import alias Import alias identifier Import alias identifier Import alias identifier ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num Num TupleLoad Num Num body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad BinOpAdd NameLoad Num keyword NameLoad Assign TupleStore NameStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Num keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore ListLoad Call NameLoad NameLoad keyword Num keyword NameLoad keyword Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad keyword Num keyword NameLoad keyword Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad TupleLoad Num NameLoad Assign NameStore Call NameLoad NameLoad keyword BinOpAdd NameLoad Num keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad NameLoad BinOpAdd NameLoad Num Return TupleLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num BinOpSub Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad TryExcept body Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad For TupleStore NameStore TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq BinOpMod NameLoad Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore ListLoad handlers ExceptHandler type NameLoad body Pass FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore IfExp AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Return BinOpAdd SubscriptLoad NameLoad Index Str NameLoad decorator_list Return NameLoad decorator_list Assign NameStore ListLoad Dict Str Str Call NameLoad NameLoad Dict Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword TupleLoad Num Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A theano N/A theano.tensor T N/A numpy np N/A matplotlib.pyplot plt lasagne.layers InputLayer DenseLayer ReshapeLayer N/A lasagne.layers N/A lasagne.nonlinearities N/A lasagne.updates N/A lasagne.objectives N/A lasagne.init ntm.layers NTMLayer ntm.memory Memory ntm.controllers DenseController ntm.heads WriteHead ReadHead ntm.updates graves_rmsprop utils.generators RepeatCopyTask utils.visualization Dashboard model N/A N/A input_var batch_size size num_units memory_shape N/A 1 8 100 N/A 128 20 N/A N/A l_input N/A InputLayer N/A batch_size None N/A size 2 input_var input_var N/A N/A _ seqlen _ N/A N/A l_input input_var shape N/A memory N/A Memory memory_shape name memory memory_init N/A N/A N/A lasagne init Constant 1e-06 learn_init False N/A controller N/A DenseController l_input memory_shape memory_shape num_units num_units num_reads 1 nonlinearity N/A N/A lasagne nonlinearities rectify name controller N/A heads N/A N/A WriteHead controller num_shifts 3 memory_shape memory_shape name write learn_init False nonlinearity_key N/A N/A lasagne nonlinearities rectify nonlinearity_add N/A N/A lasagne nonlinearities rectify N/A ReadHead controller num_shifts 3 memory_shape memory_shape name read learn_init False nonlinearity_key N/A N/A lasagne nonlinearities rectify N/A l_ntm N/A NTMLayer l_input memory memory controller controller heads heads N/A l_output_reshape N/A ReshapeLayer l_ntm N/A -1 num_units N/A l_output_dense N/A DenseLayer l_output_reshape num_units N/A size 2 nonlinearity N/A N/A lasagne nonlinearities sigmoid name dense N/A l_output N/A ReshapeLayer l_output_dense N/A batch_size seqlen N/A size 2 N/A N/A l_output l_ntm N/A N/A N/A __name__ __main__ N/A N/A N/A input_var target_var N/A N/A T tensor3s input target N/A generator N/A RepeatCopyTask batch_size 1 max_iter 1000000 size 8 min_length 3 max_length 5 max_repeats 5 unary True end_marker True N/A N/A l_output l_ntm N/A model input_var batch_size N/A generator batch_size size N/A generator size num_units 100 memory_shape N/A 128 20 N/A pred_var N/A N/A T clip N/A N/A N/A lasagne layers get_output l_output 1e-06 N/A 1.0 1e-06 N/A loss N/A N/A T mean N/A N/A N/A lasagne objectives binary_crossentropy pred_var target_var N/A params N/A N/A N/A lasagne layers get_all_params l_output trainable True N/A updates N/A N/A N/A lasagne updates adam loss params learning_rate 0.0005 N/A train_fn N/A N/A theano function N/A input_var target_var loss updates updates N/A ntm_fn N/A N/A theano function N/A input_var pred_var N/A ntm_layer_fn N/A N/A theano function N/A input_var N/A N/A N/A lasagne layers get_output l_ntm get_details True N/A N/A N/A N/A scores all_scores N/A N/A N/A N/A N/A i N/A example_input example_output generator N/A N/A score N/A train_fn example_input example_output N/A N/A N/A scores append score N/A N/A N/A all_scores append score N/A N/A N/A i 500 0 N/A N/A mean_scores N/A N/A np mean scores N/A N/A Batch #%d: %.6f N/A i mean_scores N/A scores N/A N/A N/A N/A KeyboardInterrupt N/A N/A marker N/A N/A generator N/A N/A marker_ N/A N/A params N/A N/A N/A num_repeats_length N/A N/A generator unary N/A params N/A repeats 1 N/A N/A N/A params N/A length num_repeats_length N/A N/A marker_ N/A N/A markers N/A N/A location style N/A marker generator N/A color ls red - N/A dashboard N/A Dashboard generator generator ntm_fn ntm_fn ntm_layer_fn ntm_layer_fn memory_shape N/A 128 20 markers markers cmap bone N/A params N/A N/A generator sample_params N/A N/A N/A dashboard sample params