Module ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword ListLoad Str Str Str keyword AttributeLoad NameLoad attr keyword Call NameLoad keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad keyword Str keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BoolOpOr BoolOpAnd CompareEq SubscriptLoad NameLoad Index NameLoad Num CompareEq SubscriptLoad NameLoad Index NameLoad Num CompareLt Call AttributeLoad NameLoad attr BinOpSub BinOpDiv SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad ExtSlice Slice Index NameLoad Slice Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Slice Index BinOpSub NameLoad Num Slice SubscriptLoad NameLoad ExtSlice Slice Index BinOpSub NameLoad Num Slice keyword Num Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str Str keyword NameLoad keyword Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str Str keyword NameLoad keyword Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str keyword NameLoad keyword Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str keyword NameLoad Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str keyword NameLoad Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str keyword Num keyword NameLoad Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str Str keyword NameLoad keyword Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str keyword NameLoad keyword Call NameLoad Assign NameStore Call NameLoad Call NameLoad keyword Str keyword ListLoad Str Str keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword ListLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore NameLoad For NameStore Call NameLoad Num body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num If NameLoad body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num orelse Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body If AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num orelse Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Slice Slice Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad Num NameLoad keyword Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num orelse Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num orelse Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body If UnaryOpNot BoolOpOr BoolOpAnd CompareEq SubscriptLoad NameLoad Index NameLoad Num CompareEq SubscriptLoad NameLoad Index NameLoad Num BoolOpAnd CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Num CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Num CompareLt Call AttributeLoad NameLoad attr BinOpSub BinOpDiv SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num NameLoad body Print SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpDiv SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BoolOpOr BoolOpAnd CompareEq SubscriptLoad NameLoad Index NameLoad Num CompareEq SubscriptLoad NameLoad Index NameLoad Num BoolOpAnd CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Num CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Num CompareLt Call AttributeLoad NameLoad attr BinOpSub BinOpDiv SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A recurrent * lstm_old * N/A stage_tests N/A unittest map * active * elem_prod * sum * Recurrent_Tests N/A N/A stage_tests StageTests N/A setUp N/A N/A self N/A N/A N/A N/A self N 5 N/A N/A self T 5 N/A N/A self D 10 N/A N/A self D2 5 N/A N/A self sigm_ N/A Map name sigm inputNames N/A input(0) sigm(-1) sigm(-2) outputDim N/A self D2 activeFn N/A SigmoidActiveFn initRange 1 initSeed 5 learningRate 0.9 N/A N/A self sigm N/A RecurrentAdapter stage N/A self sigm_ N/A N/A self stage N/A N/A N/A self sigm getStage time 0 N/A N/A self model N/A RecurrentContainer stages N/A N/A self sigm timespan N/A self T inputDim N/A self D outputDim N/A self D2 outputStageNames N/A sigm multiOutput True name container outputdEdX True N/A N/A self testInputErr True N/A N/A self costFn meanSqErr N/A test_grad N/A N/A self N/A N/A N/A random N/A N/A N/A np random RandomState 1 N/A X N/A N/A random rand N/A self N N/A self T N/A self D N/A T N/A N/A random rand N/A self N N/A self T N/A self D2 N/A N/A dEdW dEdWTmp dEdX dEdXTmp N/A N/A self calcgrd X T N/A N/A N/A self chkgrd dEdW dEdWTmp N/A N/A N/A self chkgrd dEdX dEdXTmp N/A test_forward N/A N/A self N/A N/A N/A random N/A N/A N/A np random RandomState 1 N/A X N/A N/A random rand N/A self N N/A self T N/A self D N/A tolerance 0.0001 N/A Y2 N/A N/A self realForward X N/A Y N/A N/A N/A self model forward X N/A Y2 N/A N/A Y2 reshape N/A Y2 size N/A Y N/A N/A Y reshape N/A Y size N/A i N/A range N/A Y size N/A N/A N/A N/A self assertTrue N/A N/A N/A N/A Y N/A i 0 N/A N/A Y2 N/A i 0 N/A N/A N/A np abs N/A N/A N/A Y N/A i N/A Y2 N/A i 1 tolerance N/A realForward N/A N/A self X N/A N/A N/A Y2 N/A N/A np zeros N/A N/A self N N/A self T N/A self D2 N/A t N/A range N/A self T N/A N/A N/A Y2 N/A N/A N/A t N/A N/A N/A N/A self sigm_ forward N/A N/A np concatenate N/A N/A X N/A N/A N/A t N/A N/A Y2 N/A N/A N/A N/A t 1 N/A N/A Y2 N/A N/A N/A N/A t 2 N/A axis -1 N/A Y2 N/A N/A LSTM_Recurrent_Random_Tests N/A N/A unittest TestCase N/A test_singleErr N/A N/A self N/A N/A N/A N/A N/A self func False N/A test_multiErr N/A N/A self N/A N/A N/A N/A N/A self func True N/A func N/A N/A self multiOutput N/A N/A N/A N 5 N/A D 10 N/A D2 5 N/A Time 5 N/A I N/A RecurrentAdapter N/A Map name I inputNames N/A input(0) H(-1) C(-1) outputDim D2 activeFn N/A SigmoidActiveFn initRange 0.1 initSeed 5 biasInitConst 1.0 learningRate 0.8 momentum 0.9 N/A F N/A RecurrentAdapter N/A Map name F inputNames N/A input(0) H(-1) C(-1) outputDim D2 activeFn N/A SigmoidActiveFn initRange 0.1 initSeed 6 biasInitConst 1.0 learningRate 0.8 momentum 0.9 N/A Z N/A RecurrentAdapter N/A Map name Z inputNames N/A input(0) H(-1) outputDim D2 activeFn N/A TanhActiveFn initRange 0.1 initSeed 7 biasInitConst 0.0 learningRate 0.8 momentum 0.9 N/A FC N/A RecurrentAdapter N/A ElementProduct name F.C inputNames N/A F(0) C(-1) outputDim D2 N/A IZ N/A RecurrentAdapter N/A ElementProduct name I.Z inputNames N/A I(0) Z(0) outputDim D2 N/A C N/A RecurrentAdapter N/A Sum name C inputNames N/A F.C(0) I.Z(0) numComponents 2 outputDim D2 N/A O N/A RecurrentAdapter N/A Map name O inputNames N/A input(0) H(-1) C(0) outputDim D2 activeFn N/A SigmoidActiveFn initRange 0.1 initSeed 8 biasInitConst 1.0 learningRate 0.8 momentum 0.9 N/A U N/A RecurrentAdapter N/A Active name U inputNames N/A C(0) outputDim D2 activeFn N/A TanhActiveFn N/A H N/A RecurrentAdapter N/A ElementProduct name H inputNames N/A O(0) U(0) outputDim D2 N/A lstm N/A RecurrentContainer name lstm stages N/A I F Z FC IZ C O U H timespan Time inputDim D outputDim D2 outputStageNames N/A H multiOutput multiOutput outputdEdX True N/A lstm2 N/A LSTM_Old name lstm2 inputDim D outputDim D2 needInit False initRange 0.1 initSeed 0 cutOffZeroEnd True multiErr multiOutput learningRate 0.8 momentum 0.9 N/A random N/A N/A N/A np random RandomState 1 N/A costFn crossEntOne N/A i N/A range 3 N/A N/A X N/A N/A N/A random rand N Time D 0.1 N/A multiOutput N/A N/A T N/A N/A N/A random rand N Time D2 0.1 N/A N/A T N/A N/A N/A random rand N D2 0.1 N/A Y N/A N/A lstm forward X N/A N/A E dEdY N/A costFn Y T N/A dEdX N/A N/A lstm backward dEdY N/A N/A i 0 N/A N/A N/A N/A N/A I stages N/A 0 gpu N/A N/A W N/A N/A np concatenate N/A N/A N/A gpu as_numpy_array N/A N/A I getWeights N/A N/A gpu as_numpy_array N/A N/A F getWeights N/A N/A gpu as_numpy_array N/A N/A Z getWeights N/A N/A gpu as_numpy_array N/A N/A O getWeights axis 0 N/A N/A W N/A N/A np concatenate N/A N/A N/A I getWeights N/A N/A F getWeights N/A N/A Z getWeights N/A N/A O getWeights axis 0 N/A N/A lstm2 W N/A N/A W transpose N/A multiOutput N/A N/A Y2 N/A N/A N/A lstm2 forward X N/A N/A N/A -1 N/A N/A Y2 N/A N/A lstm2 forward X N/A N/A E dEdY2 N/A costFn Y2 T N/A multiOutput N/A N/A dEdX2 N/A N/A lstm2 backward N/A N/A np concatenate N/A dEdY2 N/A N/A np zeros N/A N 1 D2 axis 1 N/A N/A dEdX2 N/A N/A lstm2 backward dEdY2 N/A N/A N/A N/A I stages N/A 0 gpu N/A N/A dEdW N/A N/A np concatenate N/A N/A N/A gpu as_numpy_array N/A N/A I getGradient N/A N/A gpu as_numpy_array N/A N/A F getGradient N/A N/A gpu as_numpy_array N/A N/A Z getGradient N/A N/A gpu as_numpy_array N/A N/A O getGradient axis 0 N/A N/A dEdW N/A N/A np concatenate N/A N/A N/A I getGradient N/A N/A F getGradient N/A N/A Z getGradient N/A N/A O getGradient axis 0 N/A dEdW2 N/A lstm2 dEdW N/A N/A N/A lstm updateWeights N/A N/A N/A lstm2 updateWeights N/A N/A N/A self chkEqual N/A N/A dEdW transpose dEdW2 N/A N/A N/A N/A I stages N/A 0 gpu N/A N/A W N/A N/A np concatenate N/A N/A N/A gpu as_numpy_array N/A N/A I getWeights N/A N/A gpu as_numpy_array N/A N/A F getWeights N/A N/A gpu as_numpy_array N/A N/A Z getWeights N/A N/A gpu as_numpy_array N/A N/A O getWeights axis 0 N/A N/A W N/A N/A np concatenate N/A N/A N/A I getWeights N/A N/A F getWeights N/A N/A Z getWeights N/A N/A O getWeights axis 0 N/A W2 N/A lstm2 W N/A chkEqual N/A N/A self a b N/A N/A N/A tolerance 0.1 N/A a N/A N/A a reshape N/A a size N/A b N/A N/A b reshape N/A b size N/A i N/A range N/A a size N/A N/A N/A N/A N/A N/A N/A a N/A i 0 N/A N/A b N/A i 0 N/A N/A N/A N/A np abs N/A a N/A i 1e-08 N/A N/A N/A np abs N/A b N/A i 1e-08 N/A N/A N/A np abs N/A N/A N/A a N/A i N/A b N/A i 1 tolerance N/A N/A N/A a N/A i N/A b N/A i N/A N/A a N/A i N/A b N/A i N/A N/A N/A self assertTrue N/A N/A N/A N/A a N/A i 0 N/A N/A b N/A i 0 N/A N/A N/A N/A np abs N/A a N/A i 1e-08 N/A N/A N/A np abs N/A b N/A i 1e-08 N/A N/A N/A np abs N/A N/A N/A a N/A i N/A b N/A i 1 tolerance N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main