Module Expr Str Import alias identifier Import alias identifier Import alias identifier Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr keyword Num keyword Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Num Call AttributeLoad NameLoad attr keyword Num keyword Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Num Call AttributeLoad NameLoad attr keyword Num keyword Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Num Assign NameStore Num Assign NameStore BinOpDiv Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpAdd Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd TupleLoad Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num Slice Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd TupleLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Str
N/A N/A 
Autoencoder pretraining of neural networks
==========================================

 N/A numpy np N/A matplotlib.pyplot plt N/A deeppy dp N/A dataset N/A N/A N/A dp dataset MNIST N/A N/A x_train y_train x_test y_test N/A N/A dataset arrays flat True dp_dtypes True N/A scaler N/A N/A dp UniformScaler N/A x_train N/A N/A scaler fit_transform x_train N/A x_test N/A N/A scaler transform x_test N/A batch_size 128 N/A train_feed N/A N/A dp Feed x_train batch_size batch_size N/A sae N/A N/A dp StackedAutoencoder layers N/A N/A N/A dp DenoisingAutoencoder n_out 1000 weights N/A N/A dp Parameter N/A N/A dp AutoFiller activation sigmoid corruption 0.25 N/A N/A dp DenoisingAutoencoder n_out 1000 weights N/A N/A dp Parameter N/A N/A dp AutoFiller activation sigmoid corruption 0.25 N/A N/A dp DenoisingAutoencoder n_out 1000 weights N/A N/A dp Parameter N/A N/A dp AutoFiller activation sigmoid corruption 0.25 N/A n_epochs 25 N/A learn_rate N/A 0.025 batch_size N/A learn_rule N/A N/A dp Momentum learn_rate momentum 0.9 N/A ae N/A N/A sae ae_models N/A N/A trainer N/A N/A dp GradientDescent ae train_feed learn_rule N/A N/A N/A trainer train_epochs n_epochs N/A trainer N/A N/A dp GradientDescent sae train_feed learn_rule N/A N/A N/A trainer train_epochs n_epochs N/A net N/A N/A dp NeuralNetwork layers N/A N/A N/A sae feedforward_layers N/A N/A N/A dp Affine n_out N/A dataset n_classes weights N/A N/A dp Parameter N/A N/A dp AutoFiller loss N/A N/A dp SoftmaxCrossEntropy N/A train_feed N/A N/A dp SupervisedFeed x_train y_train batch_size batch_size N/A test_feed N/A N/A dp Feed x_test N/A trainer N/A N/A dp GradientDescent net train_feed learn_rule N/A N/A N/A trainer train_epochs n_epochs N/A error N/A N/A np mean N/A N/A N/A net predict test_feed y_test N/A N/A Test error rate: %.4f error plot_img N/A N/A img title N/A N/A N/A N/A N/A plt figure N/A N/A N/A plt imshow img cmap gray interpolation nearest N/A N/A N/A plt axis off N/A N/A N/A plt title title N/A N/A N/A plt tight_layout N/A N/A w N/A N/A np array N/A N/A N/A N/A sae layers N/A 0 weights array N/A w N/A N/A np reshape N/A w T N/A N/A -1 N/A dataset img_shape N/A sortidx N/A N/A N/A np argsort N/A N/A np std w axis N/A 1 2 N/A -64 N/A N/A plot_img N/A N/A N/A dp misc img_tile N/A N/A N/A dp misc img_stretch N/A w N/A sortidx Autoencoder features N/A w N/A N/A np array N/A N/A N/A N/A net layers N/A 0 weights array N/A w N/A N/A np reshape N/A w T N/A N/A -1 N/A dataset img_shape N/A N/A plot_img N/A N/A N/A dp misc img_tile N/A N/A N/A dp misc img_stretch N/A w N/A sortidx Fine-tuned features