Module Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str orelse With AttributeLoad NameLoad attr body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad keyword ListLoad Num Num Assign NameStore Call NameLoad TupleLoad NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad keyword ListLoad Num Num Assign NameStore Call NameLoad TupleLoad NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad keyword ListLoad Num Num Assign NameStore Call NameLoad TupleLoad NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad keyword ListLoad Num Num Assign NameStore Call NameLoad TupleLoad NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad keyword NameLoad With AttributeLoad NameLoad attr body Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Num NameLoad keyword TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad AttributeLoad NameLoad attr If UnaryOpNot CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd BinOpMult BinOpSub Num NameLoad NameLoad BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd BinOpMult BinOpSub Num NameLoad NameLoad BinOpMult NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore ListLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num If CompareGt NameLoad Num body Assign NameStore Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore Call NameLoad Num NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad BinOpMult NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A theano N/A theano.tensor T theano.sandbox.rng_mrg MRG_RandomStreams theano.tensor.nnet.conv conv2d theano.tensor.signal.downsample max_pool_2d theano.tensor.shared_randomstreams RandomStreams N/A numpy np toolbox * modelbase * N/A itertools FFN_bn_vat N/A ModelSLBase N/A N/A 
    Virtual adversarial training with batch normalization
     save N/A N/A self N/A N/A N/A N/A N/A N/A N/A os path exists savedmodels\ N/A N/A N/A N/A os makedirs savedmodels\ N/A N/A N/A N/A self params save N/A self filename N/A N/A N/A N/A self shared_vars save N/A N/A self filename _vars N/A __init__ N/A N/A self data hp N/A N/A N/A N/A N/A N/A super FFN_bn_vat self __init__ N/A N/A self __class__ __name__ data hp N/A N/A self epsilon 0.001 N/A N/A self params N/A Parameters N/A N/A self shared_vars N/A Parameters N/A n_x N/A N/A self data N/A n_x N/A n_y N/A N/A self data N/A n_y N/A n_h1 1200 N/A n_h2 800 N/A n_h3 600 N/A n_h4 400 N/A scale N/A hp init_scale N/A dropout_rate 0.3 N/A N/A N/A hp load_model N/A N/A N/A os path isfile N/A self filename N/A N/A N/A N/A N/A self params load N/A self filename N/A N/A N/A N/A self shared_vars load N/A N/A self filename _vars N/A N/A N/A self params N/A N/A w_h N/A shared_normal N/A n_x n_h1 scale scale N/A gamma N/A shared_uniform N/A n_h1 range N/A 0.95 1.05 N/A b_h N/A shared_zeros N/A n_h1 N/A w_h2 N/A shared_normal N/A n_h1 n_h2 scale scale N/A gamma2 N/A shared_uniform N/A n_h2 range N/A 0.95 1.05 N/A b_h2 N/A shared_zeros N/A n_h2 N/A w_h3 N/A shared_normal N/A n_h2 n_h3 scale scale N/A gamma3 N/A shared_uniform N/A n_h3 range N/A 0.95 1.05 N/A b_h3 N/A shared_zeros N/A n_h3 N/A w_h4 N/A shared_normal N/A n_h3 n_h4 scale scale N/A gamma4 N/A shared_uniform N/A n_h4 range N/A 0.95 1.05 N/A b_h4 N/A shared_zeros N/A n_h4 N/A w_o N/A shared_normal N/A n_h4 n_y scale scale N/A N/A self shared_vars N/A N/A m_shared N/A shared_zeros N/A 1 n_h1 broadcastable N/A True False N/A v_shared N/A shared_zeros N/A 1 n_h1 broadcastable N/A True False N/A m_shared2 N/A shared_zeros N/A 1 n_h2 broadcastable N/A True False N/A v_shared2 N/A shared_zeros N/A 1 n_h2 broadcastable N/A True False N/A m_shared3 N/A shared_zeros N/A 1 n_h3 broadcastable N/A True False N/A v_shared3 N/A shared_zeros N/A 1 n_h3 broadcastable N/A True False N/A m_shared4 N/A shared_zeros N/A 1 n_h4 broadcastable N/A True False N/A v_shared4 N/A shared_zeros N/A 1 n_h4 broadcastable N/A True False batch_norm N/A N/A X m_shared v_shared test add_updates N/A N/A N/A N/A N/A X ndim 2 N/A N/A output_shape N/A X shape N/A X N/A N/A X flatten 2 N/A N/A test False N/A N/A m N/A N/A T mean X axis 0 keepdims True N/A v N/A N/A T sqrt N/A N/A N/A T var X axis 0 keepdims True N/A self epsilon N/A N/A N/A add_updates None N/A N/A mulfac N/A 1.0 100 N/A N/A N/A add_updates append N/A m_shared N/A N/A N/A 1.0 mulfac m_shared N/A mulfac m N/A N/A N/A add_updates append N/A v_shared N/A N/A N/A 1.0 mulfac v_shared N/A mulfac v N/A N/A m m_shared N/A v v_shared N/A X_hat N/A N/A X m v N/A N/A N/A X ndim 2 N/A N/A X_hat N/A N/A T reshape X_hat output_shape N/A X_hat N/A model N/A N/A X params sv p_drop_hidden test add_updates N/A N/A N/A h N/A batch_norm N/A N/A T dot X N/A params w_h N/A sv m_shared N/A sv v_shared test add_updates N/A h N/A N/A N/A params gamma h N/A params b_h N/A h N/A dropout N/A rectify h p_drop_hidden N/A h2 N/A batch_norm N/A N/A T dot h N/A params w_h2 N/A sv m_shared2 N/A sv v_shared2 test add_updates N/A h2 N/A N/A N/A params gamma2 h2 N/A params b_h2 N/A h2 N/A dropout N/A rectify h2 p_drop_hidden N/A h3 N/A batch_norm N/A N/A T dot h2 N/A params w_h3 N/A sv m_shared3 N/A sv v_shared3 test add_updates N/A h3 N/A N/A N/A params gamma3 h3 N/A params b_h3 N/A h3 N/A dropout N/A rectify h3 p_drop_hidden N/A h4 N/A batch_norm N/A N/A T dot h3 N/A params w_h4 N/A sv m_shared4 N/A sv v_shared4 test add_updates N/A h4 N/A N/A N/A params gamma4 h4 N/A params b_h4 N/A h4 N/A dropout N/A rectify h4 p_drop_hidden N/A py_x N/A softmax N/A N/A T dot h4 N/A params w_o N/A py_x N/A N/A add_updates N/A N/A x N/A N/A self X N/A gaussian N/A N/A self X shape 0.1 N/A py_x N/A model x N/A self params N/A self shared_vars dropout_rate False add_updates N/A cost N/A N/A N/A T sum N/A N/A self Y N/A N/A T log py_x N/A adv_cost_coeff 1.0 N/A adv_est_noise 1e-06 N/A adv_noise 3.0 N/A adv_power_iter 1 N/A N/A adv_cost_coeff 0 N/A N/A adv_X N/A normalize N/A gaussian N/A N/A self X shape 1.0 N/A power_it N/A xrange 0 adv_power_iter N/A N/A d N/A adv_X adv_est_noise N/A adv_est_py_x N/A model N/A x d N/A self params N/A self shared_vars dropout_rate False None N/A cost_adv N/A N/A N/A T sum N/A py_x N/A N/A T log adv_est_py_x N/A adv_X N/A N/A T grad cost cost_adv wrt d N/A adv_X N/A normalize N/A N/A N/A theano gradient disconnected_grad adv_X N/A adv_py_x N/A model N/A x N/A adv_X adv_noise N/A self params N/A self shared_vars dropout_rate False None N/A py_x_hat N/A N/A N/A theano gradient disconnected_grad py_x N/A adv_cost N/A N/A N/A T sum N/A py_x_hat N/A N/A T log adv_py_x N/A cost N/A adv_cost_coeff adv_cost N/A pyx N/A model N/A self X N/A self params N/A self shared_vars 0.0 True None N/A map_pyx N/A N/A T argmax pyx axis 1 N/A error_map_pyx N/A N/A T sum N/A N/A T neq map_pyx N/A N/A T argmax N/A self Y axis 1 N/A N/A N/A self compile cost error_map_pyx add_updates N/A N/A