Module Import alias identifier Import alias Import alias identifier Import alias identifier Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias alias Import alias ImportFrom alias Import alias Expr Call AttributeLoad NameLoad attr Str Import alias identifier Import alias Import alias Import alias Import alias ImportFrom alias If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Print Print BinOpMod Str NameLoad Print Print Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore NameStore NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign TupleStore NameStore NameStore NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Print BinOpMod Str NameLoad Print Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Print BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Dict Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword NameLoad keyword Str If Call NameLoad NameLoad Str body Print Str If Call NameLoad NameLoad Str body Print Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Str Num Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str orelse If Call NameLoad NameLoad Str body Print Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Slice UnaryOpUSub Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Print Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad Call NameLoad body Print BinOpMod Str TupleLoad BinOpAdd NameLoad Num AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq BinOpMod BinOpAdd NameLoad Num AttributeLoad NameLoad attr Num body Print Print Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad body Print BinOpMod Str NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str BinOpMult NameLoad Num Print Expr Call AttributeLoad NameLoad attr NameLoad Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign NameStore BinOpMult NameLoad BinOpDiv Call NameLoad BinOpSub AttributeLoad NameLoad attr BinOpAdd NameLoad Num Call NameLoad BinOpSub BinOpAdd NameLoad Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Print BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Print If CompareEq BinOpMod BinOpAdd NameLoad Num AttributeLoad NameLoad attr Num body Print Print Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad Str NameLoad NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Print
N/A N/A numpy np N/A theano N/A theano.tensor T N/A lasagne nn N/A time N/A os N/A sys N/A importlib N/A cPickle pickle datetime datetime timedelta N/A string itertools izip N/A matplotlib N/A N/A N/A matplotlib use agg N/A pylab plt N/A data N/A utils N/A buffering N/A nn_plankton subprocess Popen N/A N/A N/A len N/A sys argv 2 N/A N/A N/A N/A sys exit Usage: train_convnet.py <configuration_name> N/A config_name N/A N/A sys argv N/A 1 N/A config N/A N/A importlib import_module N/A configurations.%s config_name N/A expid N/A N/A utils generate_expid config_name N/A metadata_tmp_path N/A /var/tmp/%s.pkl expid N/A metadata_target_path N/A N/A N/A os path join N/A N/A os getcwd N/A metadata/%s.pkl expid N/A N/A N/A Experiment ID: %s expid N/A N/A Build model N/A model N/A N/A config build_model N/A N/A N/A len model 4 N/A N/A N/A l_ins l_out l_resume l_exclude model N/A N/A N/A N/A len model 3 N/A N/A N/A l_ins l_out l_resume model N/A l_exclude N/A l_ins N/A 0 N/A N/A N/A l_ins l_out model N/A l_resume l_out N/A l_exclude N/A l_ins N/A 0 N/A all_layers N/A N/A N/A nn layers get_all_layers l_out N/A num_params N/A N/A N/A nn layers count_params l_out N/A N/A   number of parameters: %d num_params N/A   layer output shapes: N/A layer all_layers N/A N/A name N/A N/A string ljust N/A N/A layer __class__ __name__ 32 N/A N/A     %s %s N/A name N/A N/A layer get_output_shape N/A N/A hasattr config build_objective N/A N/A obj N/A N/A config build_objective l_ins l_out N/A N/A obj N/A N/A N/A nn objectives Objective l_out loss_function N/A nn_plankton log_loss N/A train_loss N/A N/A obj get_loss N/A output N/A N/A l_out get_output deterministic True N/A all_params N/A N/A N/A nn layers get_all_params l_out N/A all_excluded_params N/A N/A N/A nn layers get_all_params l_exclude N/A all_params N/A list N/A N/A set all_params N/A set all_excluded_params N/A input_ndims N/A N/A len N/A N/A l_in get_output_shape N/A l_in l_ins N/A xs_shared N/A N/A N/A N/A nn utils shared_empty dim ndim N/A ndim input_ndims N/A y_shared N/A N/A N/A nn utils shared_empty dim 2 N/A N/A hasattr config learning_rate_schedule N/A N/A learning_rate_schedule N/A config learning_rate_schedule N/A N/A learning_rate_schedule N/A 0 N/A config learning_rate N/A learning_rate N/A N/A theano shared N/A N/A np float32 N/A learning_rate_schedule N/A 0 N/A idx N/A N/A T lscalar idx N/A givens N/A N/A obj target_var N/A y_shared N/A N/A idx N/A config batch_size N/A N/A idx 1 N/A config batch_size N/A N/A l_in x_shared N/A zip l_ins xs_shared N/A N/A N/A givens N/A N/A l_in input_var N/A x_shared N/A N/A idx N/A config batch_size N/A N/A idx 1 N/A config batch_size N/A N/A hasattr config build_updates N/A N/A updates N/A N/A config build_updates train_loss all_params learning_rate N/A N/A updates N/A N/A N/A nn updates nesterov_momentum train_loss all_params learning_rate N/A config momentum N/A N/A hasattr config censor_updates N/A N/A updates N/A N/A config censor_updates updates l_out N/A iter_train N/A N/A theano function N/A idx train_loss givens givens updates updates N/A compute_output N/A N/A theano function N/A idx output givens givens on_unused_input ignore N/A N/A hasattr config resume_path N/A N/A Load model parameters for resuming N/A N/A hasattr config pre_init_path N/A N/A lresume=lout N/A l_resume l_out N/A resume_metadata N/A N/A np load N/A config resume_path N/A N/A N/A N/A nn layers set_all_param_values l_resume N/A resume_metadata N/A param_values N/A start_chunk_idx N/A N/A resume_metadata N/A chunks_since_start 1 N/A chunks_train_idcs N/A range start_chunk_idx N/A config num_chunks_train N/A current_lr N/A N/A np float32 N/A N/A utils current_learning_rate learning_rate_schedule start_chunk_idx N/A N/A   setting learning rate to %.7f current_lr N/A N/A N/A learning_rate set_value current_lr N/A losses_train N/A resume_metadata N/A losses_train N/A losses_eval_valid N/A resume_metadata N/A losses_eval_valid N/A losses_eval_train N/A resume_metadata N/A losses_eval_train N/A N/A N/A hasattr config pre_init_path N/A N/A Load model parameters for initializing first x layers N/A resume_metadata N/A N/A np load N/A config pre_init_path N/A N/A N/A N/A nn layers set_all_param_values l_resume N/A N/A resume_metadata N/A param_values N/A N/A N/A len all_excluded_params N/A chunks_train_idcs N/A range N/A config num_chunks_train N/A losses_train N/A N/A losses_eval_valid N/A N/A losses_eval_train N/A N/A N/A chunks_train_idcs N/A range N/A config num_chunks_train N/A losses_train N/A N/A losses_eval_valid N/A N/A losses_eval_train N/A N/A Load data N/A N/A N/A N/A config data_loader load_train N/A N/A hasattr config resume_path N/A N/A N/A N/A N/A config data_loader set_params N/A resume_metadata N/A data_loader_params N/A N/A N/A N/A N/A config data_loader estimate_params N/A N/A hasattr config create_train_gen N/A N/A create_train_gen N/A config create_train_gen N/A N/A create_train_gen N/A N/A N/A N/A N/A N/A N/A config data_loader create_random_gen N/A N/A config data_loader images_train N/A N/A config data_loader labels_train N/A N/A hasattr config create_eval_valid_gen N/A N/A create_eval_valid_gen N/A config create_eval_valid_gen N/A N/A create_eval_valid_gen N/A N/A N/A N/A N/A N/A N/A config data_loader create_fixed_gen N/A N/A config data_loader images_valid augment False N/A N/A hasattr config create_eval_train_gen N/A N/A create_eval_train_gen N/A config create_eval_train_gen N/A N/A create_eval_train_gen N/A N/A N/A N/A N/A N/A N/A config data_loader create_fixed_gen N/A N/A config data_loader images_train augment False N/A Train model N/A start_time N/A N/A time time N/A prev_time start_time N/A copy_process None N/A num_batches_chunk N/A N/A config chunk_size N/A config batch_size N/A N/A e N/A xs_chunk y_chunk N/A izip chunks_train_idcs N/A create_train_gen N/A N/A N/A Chunk %d/%d N/A N/A e 1 N/A config num_chunks_train N/A N/A e learning_rate_schedule N/A N/A lr N/A N/A np float32 N/A learning_rate_schedule N/A e N/A N/A   setting learning rate to %.7f lr N/A N/A N/A learning_rate set_value lr N/A   load training data onto GPU N/A N/A x_shared x_chunk N/A zip xs_shared xs_chunk N/A N/A N/A N/A x_shared set_value x_chunk N/A N/A N/A y_shared set_value y_chunk N/A   batch SGD N/A losses N/A N/A b N/A xrange num_batches_chunk N/A N/A loss N/A iter_train b N/A N/A N/A np isnan loss N/A N/A N/A RuntimeError NaN DETECTED. N/A N/A N/A losses append loss N/A mean_train_loss N/A N/A np mean losses N/A N/A   mean training loss:		%.6f mean_train_loss N/A N/A N/A losses_train append mean_train_loss N/A N/A N/A N/A e 1 N/A config validate_every 0 N/A N/A N/A Validating N/A subsets N/A train valid N/A gens N/A create_eval_train_gen create_eval_valid_gen N/A label_sets N/A N/A N/A config data_loader labels_train N/A N/A config data_loader labels_valid N/A losses_eval N/A losses_eval_train losses_eval_valid N/A N/A subset create_gen labels losses N/A zip subsets gens label_sets losses_eval N/A N/A N/A   %s set subset N/A outputs N/A N/A N/A xs_chunk_eval chunk_length_eval N/A create_gen N/A N/A num_batches_chunk_eval N/A int N/A N/A np ceil N/A chunk_length_eval N/A float N/A config batch_size N/A N/A x_shared x_chunk_eval N/A zip xs_shared xs_chunk_eval N/A N/A N/A N/A x_shared set_value x_chunk_eval N/A outputs_chunk N/A N/A b N/A xrange num_batches_chunk_eval N/A N/A out N/A compute_output b N/A N/A N/A outputs_chunk append out N/A outputs_chunk N/A N/A np vstack outputs_chunk N/A outputs_chunk N/A outputs_chunk N/A chunk_length_eval N/A N/A N/A outputs append outputs_chunk N/A outputs N/A N/A np vstack outputs N/A loss N/A N/A utils log_loss outputs labels N/A acc N/A N/A utils accuracy outputs labels N/A N/A     loss:	%.6f loss N/A N/A     acc:	%.2f%% N/A acc 100 N/A N/A N/A N/A losses append loss N/A outputs N/A now N/A N/A time time N/A time_since_start N/A now start_time N/A time_since_prev N/A now prev_time N/A prev_time now N/A est_time_left N/A time_since_start N/A N/A float N/A N/A config num_chunks_train N/A e 1 N/A float N/A N/A e 1 N/A chunks_train_idcs N/A 0 N/A eta N/A N/A N/A datetime now N/A timedelta seconds est_time_left N/A eta_str N/A N/A eta strftime %c N/A N/A   %s since start (%.2f s) N/A N/A N/A utils hms time_since_start time_since_prev N/A N/A   estimated %s to go (ETA: %s) N/A N/A N/A utils hms est_time_left eta_str N/A N/A N/A N/A N/A e 1 N/A config save_every 0 N/A N/A N/A Saving metadata, parameters N/A N/A open metadata_tmp_path w f N/A N/A N/A N/A pickle dump N/A configuration experiment_id chunks_since_start losses_train losses_eval_valid losses_eval_train time_since_start param_values data_loader_params config_name expid e losses_train losses_eval_valid losses_eval_train time_since_start N/A N/A N/A nn layers get_all_param_values l_out N/A N/A N/A config data_loader get_params f N/A pickle HIGHEST_PROTOCOL N/A N/A copy_process None N/A N/A N/A N/A copy_process terminate N/A copy_process N/A Popen N/A cp metadata_tmp_path metadata_target_path N/A N/A   saved to %s, copying to %s N/A metadata_tmp_path metadata_target_path N/A