Module Import alias identifier Import alias identifier Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Expr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareLt NameLoad Num Assert CompareLt NameLoad Num Assert CompareLt NameLoad Num If CompareEq BinOpMod BinOpAdd NameLoad Num NameLoad Num body Print Str BinOpMod Str BinOpMult BinOpAdd NameLoad Num NameLoad Str BinOpMod Str NameLoad Str Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad Str BinOpMod Str NameLoad AugAssignAdd NameStore Num AugAssignAdd NameStore BinOpMult BinOpDiv NameLoad NameLoad NameLoad AugAssignAdd NameStore BinOpMult BinOpDiv NameLoad NameLoad NameLoad AugAssignAdd NameStore BinOpMult BinOpDiv NameLoad NameLoad NameLoad If CompareGtE NameLoad Num body Print Str BinOpMod Str NameLoad Str Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad If BoolOpAnd CompareGtE NameLoad Num CompareEq BinOpMod NameLoad NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A numpy np N/A tensorflow tf N/A argparse N/A time N/A os N/A cPickle mnist_data * model CPPNVAE N/A 
cppn vae:

compositional pattern-producing generative adversarial network

LOADS of help was taken from:

https://github.com/carpedm20/DCGAN-tensorflow
https://jmetzen.github.io/2015-11-27/vae.html

 main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument --training_epochs type int default 100 help training epochs N/A N/A N/A parser add_argument --display_step type int default 1 help display step N/A N/A N/A parser add_argument --checkpoint_step type int default 1 help checkpoint step N/A N/A N/A parser add_argument --batch_size type int default 500 help batch size N/A N/A N/A parser add_argument --learning_rate type float default 0.005 help learning rate for G and VAE N/A N/A N/A parser add_argument --learning_rate_vae type float default 0.001 help learning rate for VAE N/A N/A N/A parser add_argument --learning_rate_d type float default 0.001 help learning rate for D N/A N/A N/A parser add_argument --keep_prob type float default 1.0 help dropout keep probability N/A N/A N/A parser add_argument --beta1 type float default 0.65 help adam momentum param for descriminator N/A args N/A N/A parser parse_args N/A N/A train args N/A train N/A N/A args N/A N/A N/A learning_rate N/A args learning_rate N/A learning_rate_d N/A args learning_rate_d N/A learning_rate_vae N/A args learning_rate_vae N/A batch_size N/A args batch_size N/A training_epochs N/A args training_epochs N/A display_step N/A args display_step N/A checkpoint_step N/A args checkpoint_step N/A beta1 N/A args beta1 N/A keep_prob N/A args keep_prob N/A dirname save N/A N/A N/A N/A N/A os path exists dirname N/A N/A N/A N/A os makedirs dirname N/A N/A open N/A N/A N/A os path join dirname config.pkl w f N/A N/A N/A N/A cPickle dump args f N/A mnist N/A read_data_sets N/A n_samples N/A mnist num_examples N/A cppnvae N/A CPPNVAE batch_size batch_size learning_rate learning_rate learning_rate_d learning_rate_d learning_rate_vae learning_rate_vae beta1 beta1 keep_prob keep_prob N/A ckpt N/A N/A N/A tf train get_checkpoint_state dirname N/A ckpt N/A N/A N/A N/A cppnvae load_model dirname N/A counter 0 N/A epoch N/A range training_epochs N/A N/A avg_d_loss 0.0 N/A avg_q_loss 0.0 N/A avg_vae_loss 0.0 N/A N/A N/A mnist shuffle_data N/A total_batch N/A int N/A n_samples batch_size N/A i N/A range total_batch N/A N/A batch_images N/A N/A mnist next_batch batch_size N/A N/A d_loss g_loss vae_loss n_operations N/A N/A cppnvae partial_train batch_images N/A N/A vae_loss 1000000 N/A N/A d_loss 1000000 N/A N/A g_loss 1000000 N/A N/A N/A N/A counter 1 display_step 0 N/A N/A Sample: N/A %d N/A N/A i 1 batch_size  Epoch: N/A %d epoch d_loss= N/A N/A {:.4f} format d_loss g_loss= N/A N/A {:.4f} format g_loss vae_loss= N/A N/A {:.4f} format vae_loss n_op= N/A %d n_operations N/A counter 1 N/A avg_d_loss N/A N/A d_loss n_samples batch_size N/A avg_q_loss N/A N/A g_loss n_samples batch_size N/A avg_vae_loss N/A N/A vae_loss n_samples batch_size N/A N/A epoch 0 N/A N/A Epoch: N/A %04d epoch avg_d_loss= N/A N/A {:.6f} format avg_d_loss avg_q_loss= N/A N/A {:.6f} format avg_q_loss avg_vae_loss= N/A N/A {:.6f} format avg_vae_loss N/A N/A N/A epoch 0 N/A N/A epoch checkpoint_step 0 N/A N/A checkpoint_path N/A N/A N/A os path join save model.ckpt N/A N/A N/A cppnvae save_model checkpoint_path epoch N/A N/A N/A model saved to {} format checkpoint_path N/A N/A N/A cppnvae save_model checkpoint_path 0 N/A N/A N/A __name__ __main__ N/A N/A N/A main