Module Expr Str Print NameLoad Import alias identifier Import alias identifier ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr keyword Num ExtSlice Ellipsis Index AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr keyword Num ExtSlice Ellipsis Index AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Return Call AttributeLoad BinOpDiv BinOpMult Num BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Num Num SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr
N/A N/A 
====================================
Visualization of first layer filters
====================================

The first layers of convolutional neural networks often have very "human
interpretable" values, as seen in these example plots. Visually, these filters
are similar to other filters used in computer vision, such as Gabor filters.

 N/A __doc__ N/A numpy np N/A matplotlib.pyplot plt sklearn_theano.feature_extraction fetch_overfeat_weights_and_biases make_visual N/A N/A layer_weights N/A N/A N/A max_scale N/A N/A N/A N/A N/A layer_weights max axis -1 max axis -1 N/A N/A N/A N/A np newaxis N/A N/A np newaxis N/A min_scale N/A N/A N/A N/A N/A layer_weights min axis -1 min axis -1 N/A N/A N/A N/A np newaxis N/A N/A np newaxis N/A N/A N/A N/A N/A 255 N/A layer_weights min_scale N/A max_scale min_scale astype uint8 N/A make_mosaic N/A N/A layer_weights N/A N/A N/A lw_shape N/A layer_weights shape N/A lw N/A N/A N/A make_visual layer_weights reshape 8 12 N/A lw_shape N/A 1 N/A lw N/A N/A lw transpose 0 3 1 4 2 N/A lw N/A N/A lw reshape N/A 8 N/A lw_shape N/A -1 N/A 12 N/A lw_shape N/A -2 N/A lw_shape N/A 1 N/A lw N/A plot_filters N/A N/A layer_weights title show N/A None False N/A N/A mosaic N/A make_mosaic layer_weights N/A N/A N/A plt imshow mosaic interpolation nearest N/A ax N/A N/A plt gca N/A N/A N/A N/A ax xaxis set_visible False N/A N/A N/A N/A ax yaxis set_visible False N/A N/A title None N/A N/A N/A N/A plt title title N/A show N/A N/A N/A N/A plt show N/A N/A N/A weights biases N/A fetch_overfeat_weights_and_biases large_network True N/A N/A plot_filters N/A weights N/A 0 N/A N/A weights biases N/A fetch_overfeat_weights_and_biases large_network False N/A N/A N/A plt figure N/A N/A plot_filters N/A weights N/A 0 N/A N/A N/A plt show