Module Import alias identifier Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad GeneratorExp SubscriptLoad AttributeLoad NameLoad attr Index Num comprehension NameStore NameLoad Assign NameStore Call NameLoad GeneratorExp SubscriptLoad AttributeLoad NameLoad attr Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad NameLoad Assign NameStore Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Num AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AugAssignSub NameStore Call AttributeLoad NameLoad attr AugAssignMult NameStore BinOpDiv Num BinOpAdd Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num NameLoad NameLoad NameLoad body Expr Str Assign NameStore BinOpMult NameLoad Num If NameLoad body Assign NameStore BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore TupleLoad SubscriptLoad NameLoad ExtSlice Slice Slice Num NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad BinOpMult Num NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice BinOpMult Num NameLoad BinOpMult Num NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq Call NameLoad NameLoad Num Assign NameStore ListComp BinOpSub BinOpMult BinOpAdd NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assert CompareEq Call NameLoad NameLoad Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num keyword Str orelse Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num keyword AttributeLoad NameLoad attr If NameLoad body Assign NameStore ListLoad Num Num Num Num orelse Assign NameStore ListLoad Num Num Num Num For NameStore Call NameLoad Num body If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Slice Slice Index NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad keyword IfExp NameLoad Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body Assign NameStore BinOpDiv BinOpSub SubscriptLoad NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr BinOpSub Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice Slice Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad orelse Assign TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword IfExp NameLoad Str AttributeLoad NameLoad attr For NameStore Call NameLoad SubscriptLoad NameLoad Index Num body For NameStore Call NameLoad SubscriptLoad NameLoad Index Num body If CompareLt BinOpAdd BinOpMult NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body If NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad SubscriptLoad NameLoad Index Num NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad SubscriptLoad NameLoad Index Num NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Slice BinOpMult NameLoad BinOpAdd NameLoad NameLoad BinOpAdd BinOpMult NameLoad BinOpAdd NameLoad NameLoad NameLoad Slice BinOpMult NameLoad BinOpAdd NameLoad NameLoad BinOpAdd BinOpMult NameLoad BinOpAdd NameLoad NameLoad NameLoad BinOpMult NameLoad IfExp NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad TupleLoad Num Num Num body If CompareEq NameLoad Num body Assign NameStore Call NameLoad BinOpPow SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad TupleLoad Num Num body If NameLoad body Assign NameStore BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Slice BinOpMult NameLoad NameLoad BinOpMult NameLoad BinOpAdd NameLoad Num comprehension NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr keyword Str Return NameLoad decorator_list
N/A N/A numpy np N/A os N/A PIL.Image N/A pylab save_images N/A N/A images directory filename N/A N/A N/A N/A N/A N/A N/A os path exists directory N/A N/A N/A N/A os makedirs directory N/A w N/A sum N/A N/A N/A i size N/A 0 N/A i images N/A mh N/A max N/A N/A N/A i size N/A 1 N/A i images N/A result N/A N/A N/A PIL Image new RGBA N/A w mh N/A x 0 N/A i images N/A N/A N/A N/A result paste i N/A x 0 N/A x N/A N/A i size N/A 0 N/A N/A N/A result save N/A N/A directory / filename N/A scale_to_unit_interval N/A N/A ndar eps N/A 1e-08 N/A N/A  Scales all values in the ndarray ndar to be between 0 and 1  N/A ndar N/A N/A ndar copy N/A ndar N/A N/A ndar min N/A ndar N/A 1.0 N/A N/A N/A ndar max eps N/A ndar N/A tile_raster_images N/A N/A X img_shape tile_shape tile_spacing scale output_pixel_vals colorImg N/A N/A 0 0 True True False N/A N/A 
    Transform an array with one flattened image per row, into an array in
    which images are reshaped and layed out like tiles on a floor.

    This function is useful for visualizing datasets whose rows are images,
    and also columns of matrices for transforming those rows
    (such as the first layer of a neural net).

    :type X: a 2-D ndarray or a tuple of 4 channels, elements of which can
    be 2-D ndarrays or None;
    :param X: a 2-D array in which every row is a flattened image.

    :type img_shape: tuple; (height, width)
    :param img_shape: the original shape of each image

    :type tile_shape: tuple; (rows, cols)
    :param tile_shape: the number of images to tile (rows, cols)

    :param output_pixel_vals: if output should be pixel values (i.e. int8
    values) or floats

    :param scale_rows_to_unit_interval: if the values need to be scaled before
    being plotted to [0,1] or not


    :returns: array suitable for viewing as an image.
    (See:`PIL.Image.fromarray`.)
    :rtype: a 2-d array with same dtype as X.

     N/A X N/A X 1.0 N/A colorImg N/A N/A channelSize N/A N/A N/A X shape N/A 1 3 N/A X N/A N/A X N/A N/A N/A 0 channelSize N/A X N/A N/A N/A channelSize N/A 2 channelSize N/A X N/A N/A N/A N/A 2 channelSize N/A 3 channelSize None N/A N/A N/A len img_shape 2 N/A N/A N/A len tile_shape 2 N/A N/A N/A len tile_spacing 2 N/A out_shape N/A N/A N/A N/A ishp tsp tshp tsp N/A N/A ishp tshp tsp N/A zip img_shape tile_shape tile_spacing N/A N/A isinstance X tuple N/A N/A N/A N/A len X 4 N/A output_pixel_vals N/A N/A out_array N/A N/A np zeros N/A N/A out_shape N/A 0 N/A out_shape N/A 1 4 dtype uint8 N/A N/A out_array N/A N/A np zeros N/A N/A out_shape N/A 0 N/A out_shape N/A 1 4 dtype N/A X dtype N/A output_pixel_vals N/A N/A channel_defaults N/A 0 0 0 255 N/A N/A channel_defaults N/A 0.0 0.0 0.0 1.0 N/A i N/A xrange 4 N/A N/A N/A N/A X N/A i None N/A N/A N/A out_array N/A N/A N/A N/A i N/A N/A N/A np zeros out_shape dtype N/A output_pixel_vals uint8 N/A out_array dtype N/A channel_defaults N/A i N/A N/A xi N/A X N/A i N/A scale N/A N/A xi N/A N/A N/A X N/A i N/A N/A N/A X N/A i min N/A N/A N/A N/A X N/A i max N/A N/A N/A X N/A i min N/A N/A out_array N/A N/A N/A N/A i N/A tile_raster_images xi img_shape tile_shape tile_spacing False output_pixel_vals N/A out_array N/A N/A N/A H W img_shape N/A N/A Hs Ws tile_spacing N/A out_array N/A N/A np zeros out_shape dtype N/A output_pixel_vals uint8 N/A X dtype N/A tile_row N/A xrange N/A tile_shape N/A 0 N/A N/A tile_col N/A xrange N/A tile_shape N/A 1 N/A N/A N/A N/A N/A tile_row N/A tile_shape N/A 1 tile_col N/A N/A X shape N/A 0 N/A N/A scale N/A N/A tmp N/A N/A N/A X N/A N/A N/A tile_row N/A tile_shape N/A 1 tile_col reshape img_shape N/A this_img N/A scale_to_unit_interval tmp N/A N/A this_img N/A N/A N/A X N/A N/A N/A tile_row N/A tile_shape N/A 1 tile_col reshape img_shape N/A N/A out_array N/A N/A N/A tile_row N/A H Hs N/A N/A tile_row N/A H Hs H N/A N/A tile_col N/A W Ws N/A N/A tile_col N/A W Ws W N/A this_img N/A output_pixel_vals 255 1 N/A out_array N/A mat_to_img N/A N/A w dim_input scale colorImg tile_spacing tile_shape N/A False False N/A 1 1 0 N/A N/A N/A tile_shape 0 N/A N/A rowscols N/A int N/A N/A N/A w shape N/A 1 0.5 N/A tile_shape N/A rowscols rowscols N/A imgs N/A tile_raster_images X N/A w T img_shape dim_input tile_shape tile_shape tile_spacing tile_spacing scale scale colorImg colorImg N/A N/A N/A N/A PIL Image fromarray imgs N/A imgshow N/A N/A plt w dim_input scale colorImg convertImgs tile_spacing N/A False False False N/A 1 1 N/A N/A convertImgs N/A N/A channelSize N/A N/A N/A w shape N/A 0 3 N/A w N/A tuple N/A N/A w N/A N/A channelSize i N/A channelSize N/A i 1 N/A i N/A range 3 N/A N/A N/A plt axis Off N/A pil_image N/A mat_to_img w dim_input scale colorImg tile_spacing N/A N/A N/A plt imshow pil_image cmap N/A N/A pylab gray origin upper N/A pil_image N/A