Module Import alias Import alias Import alias ImportFrom alias Import alias identifier Import alias identifier Import alias Import alias identifier Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad ImportFrom alias Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num AttributeLoad NameLoad attr body Continue Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Num If BoolOpAnd CompareGt NameLoad Num CompareGt NameLoad NameLoad body Break AugAssignDiv NameStore NameLoad Assign TupleStore NameStore NameStore TupleLoad Num Num If CompareIsNot NameLoad NameLoad body For NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num AttributeLoad NameLoad attr body Continue Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Num If BoolOpAnd CompareGt NameLoad Num CompareGt NameLoad NameLoad body Break AugAssignDiv NameStore NameLoad If CompareIsNot NameLoad NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad If NameLoad body Print Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Print Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Assign NameStore IfExp NameLoad NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore TupleLoad Num Num If NameLoad body If CompareGt NameLoad NameLoad body If NameLoad body Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad Num orelse Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore NameLoad orelse If CompareGt NameLoad NameLoad body If NameLoad body Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad Num orelse Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore NameLoad Return BinOpSub BinOpDiv SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ExtSlice Slice Slice Slice NameLoad BinOpAdd NameLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Num NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad Str Assign NameStore TupleLoad Str orelse Assign NameStore CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore IfExp NameLoad TupleLoad TupleLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore Call NameLoad SubscriptLoad NameLoad Index Num CompareNotEq NameLoad SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr IfExp AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Num body Return NameLoad Assign NameStore IfExp NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpSub UnaryOpUSub BinOpAdd Call AttributeLoad NameLoad attr BinOpMult Num Call AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr NameLoad BinOpDiv BinOpMult Num Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpMult Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad BinOpMult BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad Num attr NameLoad NameLoad NameLoad attr Num Num Num attr Num Num attr AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore IfExp CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Str Str Assign NameStore IfExp CompareEq NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr Num Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Return BinOpSub BinOpDiv Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad attr Num Num Num Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore ListComp SubscriptLoad NameLoad Index BinOpMod Str NameLoad comprehension NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse With Call NameLoad NameLoad Str NameStore body Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Assign NameStore IfExp Call NameLoad NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse With Call NameLoad NameLoad Str NameStore body Import alias Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore IfExp NameLoad ListLoad SubscriptLoad NameLoad Slice Num BinOpAdd Num NameLoad Assign NameStore IfExp NameLoad ListLoad SubscriptLoad NameLoad Slice BinOpAdd Num NameLoad BinOpAdd Num BinOpMult Num NameLoad Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Slice Num BinOpAdd Num NameLoad SubscriptLoad NameLoad Slice BinOpAdd Num BinOpMult Num NameLoad BinOpAdd Num BinOpMult Num NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr BinOpSub BinOpSub BinOpAdd Num BinOpMult Num NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpMult Num NameLoad If NameLoad body Assign NameStore BinOpMult Call NameLoad GeneratorExp Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr comprehension NameStore NameLoad BinOpDiv Num NameLoad Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse Assign NameStore BinOpDiv Call NameLoad GeneratorExp Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num BinOpDiv Call AttributeLoad NameLoad attr NameLoad keyword Num NameLoad Assign NameStore BinOpMult Num BinOpAdd NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A time N/A sys N/A os PIL Image N/A numpy np N/A lasagne nn N/A theano N/A theano.tensor T N/A h5py fuel.datasets.hdf5 H5PYDataset fuel.schemes ShuffledScheme SequentialScheme fuel.streams DataStream train_with_hdf5 N/A N/A data num_epochs train_fn test_fn tr_transform te_transform verbose train_shuffle save_best_params_to last_layer max_per_epoch N/A N/A N/A N/A x N/A x N/A N/A N/A x N/A x True True None None -1 N/A N/A tr_stream N/A N/A data streamer training True shuffled train_shuffle N/A te_stream N/A N/A data streamer training False shuffled False tqdm tqdm N/A ret N/A N/A mve_params None N/A mve None N/A best_epoch 0 N/A epoch N/A range num_epochs N/A N/A start N/A N/A time time N/A N/A tr_err tr_batches N/A 0 0 N/A imb N/A tqdm N/A N/A tr_stream get_epoch_iterator total N/A N/A data ntrain N/A data batch_size N/A N/A N/A N/A N/A N/A imb N/A 0 shape N/A 0 N/A data batch_size N/A N/A N/A imb N/A tr_transform imb N/A N/A N/A isinstance imb tuple N/A N/A imb N/A imb N/A tr_err N/A train_fn imb N/A tr_batches 1 N/A N/A N/A max_per_epoch 0 N/A tr_batches max_per_epoch N/A N/A N/A tr_err tr_batches N/A N/A val_err val_batches N/A 0 0 N/A N/A te_stream None N/A N/A imb N/A tqdm N/A N/A te_stream get_epoch_iterator total N/A N/A data ntest N/A data batch_size N/A N/A N/A N/A N/A N/A imb N/A 0 shape N/A 0 N/A data batch_size N/A N/A N/A imb N/A te_transform imb N/A N/A N/A isinstance imb tuple N/A N/A imb N/A imb N/A val_err N/A test_fn imb N/A val_batches 1 N/A N/A N/A max_per_epoch 0 N/A val_batches max_per_epoch N/A N/A N/A val_err val_batches N/A N/A save_best_params_to None N/A N/A N/A N/A mve None N/A val_err mve N/A N/A mve val_err N/A mve_params N/A N/A N/A np copy p N/A p N/A N/A N/A nn layers get_all_param_values last_layer N/A best_epoch epoch N/A verbose N/A N/A N/A N/A ep {}/{} - tl {:.5f} - vl {:.5f} - t {:.3f}s format epoch num_epochs tr_err val_err N/A N/A N/A time time start N/A N/A N/A ret append N/A tr_err val_err N/A N/A mve_params None N/A N/A best_epoch epoch N/A mve_params N/A N/A N/A np copy p N/A p N/A N/A N/A nn layers get_all_param_values last_layer N/A N/A save_best_params_to None N/A N/A N/A N/A save best epoch: {:d} format best_epoch N/A N/A save_params mve_params save_best_params_to N/A N/A ret best_epoch N/A raw_to_floatX N/A N/A imb pixel_shift square center rng N/A 0.5 True False None N/A N/A rng N/A rng rng N/A np random N/A N/A w h N/A N/A N/A imb shape N/A 2 N/A N/A imb shape N/A 3 N/A N/A x y N/A 0 0 N/A square N/A N/A N/A w h N/A N/A center N/A N/A x N/A N/A w h 2 N/A N/A x N/A N/A rng randint N/A w h N/A w h N/A N/A N/A h w N/A N/A center N/A N/A y N/A N/A h w 2 N/A N/A y N/A N/A rng randint N/A h w N/A h w N/A N/A N/A N/A N/A N/A N/A nn utils floatX imb N/A N/A N/A N/A x N/A x w N/A y N/A y h 255.0 pixel_shift N/A DataH5PyStreamer N/A N/A __init__ N/A N/A self h5filename ntrain ntest batch_size folds N/A None None 1 None N/A N/A N/A folds None N/A N/A te_sets N/A test N/A tr_sets N/A train N/A N/A notest N/A N/A folds N/A 0 N/A folds N/A 1 N/A te_sets N/A notest N/A N/A N/A N/A fold_{} format N/A folds N/A 1 N/A tr_sets N/A tuple N/A N/A N/A fold_{} format i N/A i N/A range N/A folds N/A 0 N/A i N/A folds N/A 1 N/A N/A self batch_size batch_size N/A N/A self tr_data N/A H5PYDataset h5filename which_sets tr_sets N/A N/A self te_data N/A notest None N/A H5PYDataset h5filename which_sets te_sets N/A N/A self ntrain N/A ntrain N/A N/A self tr_data num_examples N/A N/A self ntest N/A N/A self te_data N/A ntest N/A N/A self te_data num_examples 0 N/A dataset N/A N/A self training N/A True N/A N/A N/A training N/A self tr_data N/A self te_data N/A streamer N/A N/A self training shuffled N/A True False N/A N/A n N/A training N/A self ntrain N/A self ntest N/A N/A n 0 N/A N/A None N/A func N/A shuffled ShuffledScheme SequentialScheme N/A sch N/A func examples n batch_size N/A self batch_size N/A data N/A training N/A self tr_data N/A self te_data N/A N/A DataStream data iteration_scheme sch N/A N/A log_likelihood N/A N/A tgt mu ls N/A N/A N/A N/A N/A T sum N/A N/A N/A N/A N/A np float32 N/A 0.5 N/A N/A np log N/A 2 N/A np pi ls N/A N/A 0.5 N/A N/A T sqr N/A tgt mu N/A N/A T exp N/A 2 ls N/A get_picture_array N/A N/A X index shift N/A 0.5 N/A N/A N/A ch w h N/A N/A N/A X shape N/A 1 N/A N/A X shape N/A 2 N/A N/A X shape N/A 3 N/A ret N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A X N/A index shift 255.0 reshape ch w h transpose 2 1 0 clip 0 255 astype N/A np uint8 N/A N/A ch 1 N/A N/A ret N/A N/A ret reshape h w N/A ret N/A get_image_pair N/A N/A X Xpr index shift N/A -1 0.5 N/A N/A mode N/A N/A N/A N/A X shape N/A 1 3 RGB L N/A index N/A N/A index -1 N/A N/A N/A np random randint N/A N/A X shape N/A 0 index N/A original_image N/A N/A Image fromarray N/A get_picture_array X index shift shift mode mode N/A new_size N/A N/A N/A original_image size N/A 0 N/A N/A N/A original_image size N/A 1 2 N/A new_im N/A N/A Image new mode new_size N/A N/A N/A new_im paste original_image N/A 0 0 N/A rec_image N/A N/A Image fromarray N/A get_picture_array Xpr index shift shift mode mode N/A N/A N/A new_im paste rec_image N/A 0 N/A N/A original_image size N/A 1 N/A new_im N/A arr_from_img_storage N/A N/A im N/A N/A N/A N/A w h N/A im size N/A arr N/A N/A np asarray N/A N/A im getdata dtype N/A np uint8 N/A c N/A N/A N/A np product N/A arr size N/A w h N/A N/A N/A N/A N/A arr reshape h w c transpose 2 1 0 N/A arr_from_img N/A N/A im shift N/A 0.5 N/A N/A N/A w h N/A im size N/A arr N/A N/A np asarray N/A N/A im getdata dtype N/A N/A theano config floatX N/A c N/A N/A N/A np product N/A arr size N/A w h N/A N/A N/A N/A N/A N/A N/A arr reshape N/A h w c transpose 2 1 0 255.0 shift N/A load_params N/A N/A model fn N/A N/A N/A N/A npz fn N/A N/A N/A N/A np load fn f N/A N/A param_values N/A N/A f N/A N/A arr_%d i N/A i N/A range N/A len N/A f files N/A N/A N/A N/A nn layers set_all_param_values model param_values N/A N/A N/A open fn r re N/A N/A pickle N/A N/A N/A N/A nn layers set_all_param_values model N/A N/A pickle load re N/A save_params N/A N/A model fn N/A N/A N/A N/A npz fn N/A N/A param_vals N/A N/A isinstance model list model N/A N/A N/A nn layers get_all_param_values model N/A N/A N/A np savez fn param_vals N/A N/A N/A open fn w wr N/A N/A pickle N/A N/A N/A pickle dump param_vals wr N/A reset_accs N/A N/A updates params N/A N/A N/A key updates N/A N/A N/A N/A key params N/A N/A v N/A N/A key get_value borrow True N/A N/A N/A key set_value N/A N/A np zeros N/A v shape dtype N/A v dtype N/A build_vae_loss N/A N/A input_var l_z_mu l_z_ls l_x_mu_list l_x_ls_list l_x_list l_x deterministic binary L N/A N/A N/A layer_outputs N/A N/A N/A nn layers get_output N/A N/A N/A N/A N/A l_z_mu l_z_ls l_x_mu_list l_x_ls_list l_x_list N/A l_x deterministic deterministic N/A z_mu N/A layer_outputs N/A 0 N/A z_ls N/A layer_outputs N/A 1 N/A x_mu N/A binary N/A N/A layer_outputs N/A 2 N/A 2 L N/A x_ls N/A binary N/A N/A layer_outputs N/A N/A 2 L N/A 2 N/A 2 L N/A x_list N/A binary N/A layer_outputs N/A 2 N/A 2 L N/A layer_outputs N/A N/A 2 N/A 2 L N/A 2 N/A 3 L N/A x N/A layer_outputs N/A -1 N/A kl_div N/A 0.5 N/A N/A T sum N/A N/A N/A 1 N/A 2 z_ls N/A N/A T sqr z_mu N/A N/A T exp N/A 2 z_ls N/A binary N/A N/A logpxz N/A N/A sum N/A N/A N/A N/A N/A N/A nn objectives binary_crossentropy x input_var sum N/A x x_list N/A -1.0 L N/A prediction N/A deterministic N/A x_list N/A 0 x N/A N/A logpxz N/A N/A sum N/A N/A log_likelihood N/A N/A input_var flatten 2 mu ls N/A N/A mu ls N/A zip x_mu x_ls L N/A prediction N/A deterministic N/A x_mu N/A 0 N/A N/A N/A T sum x_mu axis 0 L N/A loss N/A -1 N/A logpxz kl_div N/A N/A loss prediction N/A