Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore Str Import alias identifier Import alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword ListLoad Call NameLoad Str keyword TupleLoad NameLoad NameLoad NameLoad NameLoad keyword Call NameLoad keyword TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num Num Num Num Num Num Num TupleLoad Str Num Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num Num Num Num Num Num Num TupleLoad Str Num Num Str Assign NameStore Call NameLoad Num Num Num Num Num Num Num TupleLoad Str Str Num Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Num Num Assert CompareEq SubscriptLoad NameLoad Index TupleLoad Num Num Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Num Assert CompareEq SubscriptLoad NameLoad Index TupleLoad Num Num Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Num Assert CompareEq SubscriptLoad NameLoad Index TupleLoad Num Num Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Test for WindowLayer
 N/A __authors__ Axel Davy N/A __copyright__ Copyright 2014, Universite de Montreal N/A __credits__ N/A Axel Davy N/A __license__ 3-clause BSD N/A __maintainer__ Axel Davy N/A numpy np N/A theano pylearn2.models.mlp MLP WindowLayer pylearn2.space Conv2DSpace build_mlp_fn N/A N/A x0 y0 x1 y1 s0 s1 c axes N/A N/A N/A 
    Creates an theano function to test the WindowLayer

    Parameters
    ----------
    x0: x coordinate of the left of the window
    y0: y coordinate of the top of the window
    x1: x coordinate of the right of the window
    y1: y coordinate of the bottom of the window
    s0: x shape of the images of the input space
    s1: y shape of the images of the input space
    c: number of channels of the input space
    axes: description of the axes of the input space

    Returns
    -------
    f: a theano function applicating the window layer
    of window (x0, y0, x1, y1).
     N/A mlp N/A MLP layers N/A N/A WindowLayer h0 window N/A x0 y0 x1 y1 input_space N/A Conv2DSpace shape N/A s0 s1 num_channels c axes axes N/A X N/A N/A N/A N/A mlp get_input_space make_batch_theano N/A f N/A N/A theano function N/A X N/A N/A mlp fprop X N/A f N/A test_windowlayer N/A N/A N/A N/A N/A 
    Tests that WindowLayer reacts correctly to the error in window
    settings, and that the window gives the correct results.

    Parameters
    ----------
    No Parameter
     N/A N/A N/A N/A np testing assert_raises ValueError build_mlp_fn 0 0 20 20 20 20 3 N/A c 0 1 b N/A N/A N/A N/A np testing assert_raises ValueError build_mlp_fn -1 -1 19 19 20 20 3 N/A c 0 1 b N/A fprop N/A build_mlp_fn 5 5 10 15 20 20 2 N/A b c 0 1 N/A n N/A N/A N/A N/A N/A np random rand 3 2 20 20 astype N/A N/A theano config floatX N/A r N/A fprop n N/A N/A N/A r shape N/A 3 2 6 11 N/A N/A N/A r N/A N/A 0 0 0 0 N/A n N/A N/A 0 0 5 5 N/A N/A N/A r N/A N/A 2 1 5 10 N/A n N/A N/A 2 1 10 15 N/A N/A N/A r N/A N/A 1 1 3 3 N/A n N/A N/A 1 1 8 8 N/A N/A N/A __name__ __main__ N/A N/A N/A test_windowlayer