Module Import alias Import alias Import alias identifier Import alias identifier ImportFrom alias identifier Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad Assign NameStore BinOpDiv NameLoad Num Assign NameStore BinOpSub NameLoad SubscriptLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num BinOpPow Num Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult BinOpPow NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult BinOpPow NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Print BinOpAdd Str Call NameLoad BinOpAdd NameLoad Num Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Print BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad Print BinOpAdd Str Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv NameLoad Num Assign NameStore BinOpSub NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Print BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr
N/A N/A pdb N/A time N/A numpy np N/A cudamat cm cudamat learn cl N/A util N/A N/A N/A cm cublas_init N/A N/A N/A util load mnist49.dat N/A globals N/A dat_train N/A dat_train 255.0 N/A dat_train N/A dat_train N/A N/A N/A N/A np mean dat_train 1 N/A 10 -8 N/A N/A N/A N/A np newaxis N/A dev_train N/A N/A cm CUDAMatrix dat_train N/A dev_lbl N/A N/A cm CUDAMatrix lbl_train N/A epsilon 0.01 N/A momentum 0.9 N/A num_epochs 30 N/A batch_size 128 N/A num_batches N/A N/A N/A dat_train shape N/A 1 batch_size N/A dim_in N/A N/A dat_train shape N/A 0 N/A dim_out 1 N/A num_hid 1024 N/A w_w1 N/A N/A cm CUDAMatrix N/A N/A dim_in -0.5 N/A N/A N/A np random randn dim_in num_hid N/A w_b1 N/A N/A cm CUDAMatrix N/A N/A np zeros N/A num_hid 1 N/A w_w2 N/A N/A cm CUDAMatrix N/A N/A num_hid -0.5 N/A N/A N/A np random randn num_hid dim_out N/A w_b2 N/A N/A cm CUDAMatrix N/A N/A np zeros N/A dim_out 1 N/A wu_w1 N/A N/A cm CUDAMatrix N/A N/A np zeros N/A w_w1 shape N/A wu_b1 N/A N/A cm CUDAMatrix N/A N/A np zeros N/A w_b1 shape N/A wu_w2 N/A N/A cm CUDAMatrix N/A N/A np zeros N/A w_w2 shape N/A wu_b2 N/A N/A cm CUDAMatrix N/A N/A np zeros N/A w_b2 shape N/A h N/A N/A cm empty N/A num_hid batch_size N/A out N/A N/A cm empty N/A dim_out batch_size N/A delta N/A N/A cm empty N/A num_hid batch_size N/A start_time N/A N/A time time N/A epoch N/A range num_epochs N/A N/A N/A Epoch  N/A str N/A epoch 1 N/A err N/A N/A batch N/A range num_batches N/A N/A inp N/A N/A dev_train slice N/A batch batch_size N/A N/A batch 1 batch_size N/A target N/A N/A dev_lbl slice N/A batch batch_size N/A N/A batch 1 batch_size N/A N/A N/A wu_w1 mult momentum N/A N/A N/A wu_b1 mult momentum N/A N/A N/A wu_w2 mult momentum N/A N/A N/A wu_b2 mult momentum N/A N/A N/A cm dot N/A w_w1 T inp target h N/A N/A N/A h add_col_vec w_b1 N/A N/A N/A h apply_sigmoid N/A N/A N/A cm dot N/A w_w2 T h target out N/A N/A N/A out add_col_vec w_b2 N/A N/A N/A out apply_sigmoid N/A N/A N/A out subtract target N/A N/A N/A wu_w2 add_dot h N/A out T N/A N/A N/A wu_b2 add_sums out axis 1 N/A N/A N/A cm dot w_w2 out target delta N/A N/A N/A cl mult_by_sigmoid_deriv delta h N/A N/A N/A wu_w1 add_dot inp N/A delta T N/A N/A N/A wu_b1 add_sums delta axis 1 N/A N/A N/A w_w1 subtract_mult wu_w1 N/A epsilon batch_size N/A N/A N/A w_b1 subtract_mult wu_b1 N/A epsilon batch_size N/A N/A N/A w_w2 subtract_mult wu_w2 N/A epsilon batch_size N/A N/A N/A w_b2 subtract_mult wu_b2 N/A epsilon batch_size N/A N/A N/A err append N/A N/A N/A np abs N/A N/A out asarray 0.5 N/A N/A Training misclassification rate:  N/A str N/A N/A np mean err N/A N/A Time:  N/A str N/A N/A N/A time time start_time N/A dat_test N/A dat_test 255.0 N/A dat_test N/A dat_test N/A N/A N/A np mean dat_test 1 N/A N/A N/A N/A np newaxis N/A dev_test N/A N/A cm CUDAMatrix dat_test N/A dev_lbl N/A N/A cm CUDAMatrix lbl_test N/A h N/A N/A cm empty N/A num_hid N/A N/A dat_test shape N/A 1 N/A out N/A N/A cm empty N/A dim_out N/A N/A dat_test shape N/A 1 N/A N/A N/A cm dot N/A w_w1 T dev_test target h N/A N/A N/A h add_col_vec w_b1 N/A N/A N/A h apply_sigmoid N/A N/A N/A cm dot N/A w_w2 T h target out N/A N/A N/A out add_col_vec w_b2 N/A N/A N/A out apply_sigmoid N/A N/A N/A out subtract dev_lbl N/A N/A Testing misclassification rate:  N/A str N/A N/A np mean N/A N/A N/A np abs N/A N/A out asarray 0.5 N/A N/A N/A cm cublas_shutdown