Module Import alias identifier Import alias Import alias identifier ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Print Str orelse Assign NameStore NameLoad Print Str ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignMult NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword UnaryOpUSub NameLoad keyword NameLoad keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return IfExp CompareIs AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr BinOpMult BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpPow AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If CompareNotIn NameLoad ListLoad Str Str Str body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp CompareIsNot NameLoad NameLoad NameLoad TupleLoad Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore BinOpAdd BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpSub BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore BinOpSub BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpFloorDiv NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpFloorDiv NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad CompareEq BinOpMod SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num BoolOpOr CompareLtE SubscriptLoad AttributeLoad NameLoad attr Index Num Num CompareEq BinOpMod SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num If BoolOpAnd NameLoad UnaryOpNot NameLoad body Print Str If BoolOpAnd UnaryOpNot NameLoad CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore BinOpDiv BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Num BinOpAdd NameLoad NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignMult NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword UnaryOpUSub NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Num orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpFloorDiv BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num orelse Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call NameLoad keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Num Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Num Num Num Num If CompareNotEq AttributeLoad NameLoad attr TupleLoad Num Num body Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Str Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr BinOpMult BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpPow AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignMult NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword UnaryOpUSub NameLoad keyword NameLoad keyword TupleLoad AttributeLoad NameLoad attr Num keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignMult NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword UnaryOpUSub NameLoad keyword NameLoad keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Return IfExp CompareIs AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr BinOpMult BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpPow AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpPow AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Return Call AttributeLoad NameLoad attr BinOpPow NameLoad Num decorator_list decorator_list
N/A N/A numpy np N/A theano N/A theano.tensor T theano.tensor.signal.downsample max_pool_2d N/A N/A theano.sandbox.cuda.basic_ops gpu_contiguous pylearn2.sandbox.cuda_convnet.filter_acts FilterActs N/A N/A N/A ImportError N/A N/A use_convnet False N/A Use theano convolution N/A N/A use_convnet True N/A Try cuda-convnet block Block utils actfuncs utils.math nprng dropout FullConnLayer N/A Block N/A N/A Construct a fully connected layer.

    The output of the fully connected layer is

    .. math::
        y = \sigma(Wx+b)

    where :math:`x` is an input sample vector, :math:`y` is the output vector,
    :math:`W` is the weight matrix, :math:`b` is the bias vector and
    :math:`\sigma` is the active function.

    Attributes
    ----------
    input_shape : int or list/tuple of int
        The shape of each input sample. If the type of `input_shape` is int,
        then each input sample is a vector. *Read-only*.
    output_shape : int or list/tuple of int
        The shape of each output sample. If the type of `output_shape` is int,
        then each output sample is a vector. *Read-only*.

    Parameters
    ----------
    input : theano.tensor.matrix
        The input symbol of the fully connected layer. Each row is a sample
        vector.
    input_shape : int or list/tuple of int
        The shape of each input sample. If the type of `input_shape` is int,
        then each input sample is a vector.
    output_shape : int or list/tuple of int
        The shape of each output sample. If the type of `output_shape` is int,
        then each output sample is a vector.
    dropout_input : None, theano.tensor, or list of theano.tensor, optional
        None if no dropout input symbol is specified, and the `input` will be
        used as `dropout_input`. Default is None.
    dropout_ratio : None or float, optional
        None if no dropout for this layer, otherwise the `dropout_ratio` portion
        of output will be dropout. Default is None.
    active_func : None, theano.Op or function, optional
        If None, then no active function will be applied to the output,
        otherwise the specified active function will be applied. Default is
        None.
    W : None or theano.matrix(shared), optional
        If None, the weight matrix will be intialized randomly, otherwise it
        will be set to the specified value. Default is None.
    b : None or theano.vector(shared), optional
        If None, the bias vector will be initialized as zero, otherwise it will
        be set to the specified value. Default is None.

     __init__ N/A N/A self input input_shape output_shape dropout_input dropout_ratio active_func W b const_params N/A None None None None None False N/A N/A N/A N/A N/A super FullConnLayer self __init__ input dropout_input N/A N/A isinstance input_shape int N/A N/A N/A self _input_shape input_shape N/A N/A N/A N/A isinstance input_shape tuple N/A isinstance input_shape list N/A N/A N/A self _input_shape N/A N/A np prod input_shape N/A N/A N/A ValueError input_shape type error N/A N/A isinstance output_shape int N/A N/A N/A self _output_shape output_shape N/A N/A N/A N/A isinstance output_shape tuple N/A isinstance output_shape list N/A N/A N/A self _output_shape N/A N/A np prod output_shape N/A N/A N/A ValueError output_shape type error N/A N/A self _active_func active_func N/A N/A self _dropout_ratio dropout_ratio N/A N/A W None N/A N/A W_bound N/A N/A np sqrt N/A 6.0 N/A N/A self _input_shape N/A self _output_shape N/A N/A active_func N/A actfuncs sigmoid N/A N/A W_bound 4 N/A init_W N/A N/A np asarray N/A N/A nprng uniform low N/A W_bound high W_bound size N/A N/A self _input_shape N/A self _output_shape dtype N/A N/A theano config floatX N/A N/A self _W N/A N/A theano shared value init_W borrow True N/A N/A N/A self _W W N/A N/A b None N/A N/A init_b N/A N/A np zeros N/A self _output_shape dtype N/A N/A theano config floatX N/A N/A self _b N/A N/A theano shared value init_b borrow True N/A N/A N/A self _b b N/A N/A const_params N/A N/A N/A self _params N/A N/A self _W N/A self _b f N/A N/A x N/A N/A N/A z N/A N/A N/A T dot x N/A self _W N/A self _b N/A N/A N/A N/A self _active_func None z N/A N/A self _active_func z N/A N/A N/A self _output N/A f N/A self _input N/A N/A self _dropout_output N/A f N/A self _dropout_input N/A N/A N/A N/A self _dropout_ratio None N/A N/A self _dropout_ratio 0 N/A N/A N/A self _output N/A N/A 1.0 N/A self _dropout_ratio N/A self _output N/A N/A self _dropout_output N/A dropout N/A self _dropout_output N/A self _dropout_ratio N/A input_shape N/A N/A self N/A N/A N/A N/A self _input_shape N/A property output_shape N/A N/A self N/A N/A N/A N/A self _output_shape N/A property get_norm N/A N/A self l N/A N/A N/A Return the norm of the weight matrix.

        Parameters
        ----------
        l : int
            The L?-norm.

        Returns
        -------
        out : theano.tensor.scalar
            The norm of the weight matrix.

         N/A N/A N/A N/A self _W norm l N/A get_squared_L2 N/A N/A self N/A N/A N/A N/A N/A T sum N/A N/A self _W 2 N/A N/A ConvPoolLayer N/A Block N/A N/A Construct a convolutional and max-pooling layer.

    The output of the convolutional and max-pooling layer is

    .. math::
        y = \sigma(\phi(\sum_{i=1}^nW_i*x+b_i))

    where :math:`x` is an input sample vector, :math:`y` is the output vector,
    :math:`W_i` is the filter matrix, :math:`b_i` is the bias vector,
    :math:`\phi` is the max-pooling function and :math:`\sigma` is the active
    function.

    Attributes
    ----------
    input_shape : list/tuple of int
        The shape of each input sample. (n_channels, n_rows, n_cols). *Read-
        only*.
    output_shape : int or list/tuple of int
        The shape of each output sample. If the type of `output_shape` is int,
        then each output sample is a vector. *Read-only*.

    Parameters
    ----------
    input : theano.tensor.tensor4
        The input symbol of the fully connected layer. Along the first dimension
        are image samples.
    input_shape : list/tuple of int
        The shape of each input sample. (n_channels, n_rows, n_cols).
    filter_shape : list/tuple of int
        The shape of the filters. (n_filters, n_channels, n_rows, n_cols).
    border_mode : str, optional
        Suppose the image size is :math:`m` and the filter size is :math:`n`. If
        ``'valid'``, then the response size is :math:`m-n+1`. If ``'full'``,
        then the response size is :math:`m+n-1`. Other modes are not supported.
        Default is ``'valid'``.
    pool_shape : None or list/tuple of int, optional
        If None, then no max-pooling will be performed, otherwise the shape of
        the max-pooling region should be (n_rows, n_cols). Default if None.
    dropout_input : None, theano.tensor, or list of theano.tensor, optional
        None if no dropout input symbol is specified, and the `input` will be
        used as `dropout_input`. Default is None.
    dropout_ratio : None or float, optional
        None if no dropout for this layer, otherwise the `dropout_ratio` portion
        of output will be dropout. Default is None.
    active_func : None, theano.Op or function, optional
        If None, then no active function will be applied to the output,
        otherwise the specified will be applied. Default is None.
    flatten : bool, optional
        If False, then output will not be flattened, otherwise the output of
        each sample will be flattened into a vector. Default is False.
    W : None or theano.matrix(shared), optional
        If None, the convolutional matrix will be intialized randomly, otherwise
        it will be set to the specified value. Default is None.
    b : None, float, or theano.vector(shared), optional
        If None, the bias vector will be initialized as zero. If float, the bias
        vector will be constant. Otherwise it will be set to the specified
        value. Default is None.

     __init__ N/A N/A self input input_shape filter_shape border_mode pool_shape dropout_input dropout_ratio active_func flatten W b const_params N/A valid None None None None False None None False N/A N/A N/A N/A N/A super ConvPoolLayer self __init__ input dropout_input N/A N/A border_mode N/A valid full same N/A N/A N/A ValueError border_mode value error N/A N/A self _input_shape input_shape N/A N/A self _filter_shape filter_shape N/A N/A self _border_mode border_mode N/A N/A self _pool_shape N/A N/A pool_shape None pool_shape N/A 1 1 N/A N/A self _dropout_ratio dropout_ratio N/A N/A self _active_func active_func N/A N/A self _flatten flatten N/A N/A N/A self _border_mode valid N/A N/A n_rows N/A N/A N/A N/A self _input_shape N/A -2 N/A N/A self _filter_shape N/A -2 1 N/A n_cols N/A N/A N/A N/A self _input_shape N/A -1 N/A N/A self _filter_shape N/A -1 1 N/A N/A N/A N/A self _border_mode full N/A N/A n_rows N/A N/A N/A N/A self _input_shape N/A -2 N/A N/A self _filter_shape N/A -2 1 N/A n_cols N/A N/A N/A N/A self _input_shape N/A -1 N/A N/A self _filter_shape N/A -1 1 N/A N/A n_rows N/A N/A self _input_shape N/A -2 N/A n_cols N/A N/A self _input_shape N/A -1 N/A N/A self _output_shape N/A N/A N/A self _filter_shape N/A 0 N/A n_rows N/A N/A self _pool_shape N/A 0 N/A n_cols N/A N/A self _pool_shape N/A 1 N/A flatten N/A N/A N/A self _output_shape N/A N/A np prod N/A self _output_shape N/A satisfy_convnet N/A use_convnet N/A N/A N/A N/A self _filter_shape N/A 0 16 0 N/A N/A N/A self _filter_shape N/A 2 N/A N/A self _filter_shape N/A 3 N/A N/A N/A N/A self _input_shape N/A 0 4 N/A N/A N/A N/A self _input_shape N/A 0 4 0 N/A N/A use_convnet N/A satisfy_convnet N/A N/A Break the convnet constraints. Fallback to theano conv. N/A N/A N/A satisfy_convnet N/A N/A self _border_mode same N/A N/A N/A ValueError Cannot use 'same' border mode when using theano conv N/A N/A W None N/A N/A fan_in N/A N/A np prod N/A N/A self _filter_shape N/A 1 N/A fan_out N/A N/A N/A N/A self _filter_shape N/A 0 N/A N/A np prod N/A N/A self _filter_shape N/A 2 N/A N/A np prod N/A self _pool_shape N/A W_bound N/A N/A np sqrt N/A 6.0 N/A fan_in fan_out N/A N/A active_func N/A actfuncs sigmoid N/A N/A W_bound 4 N/A init_W N/A N/A np asarray N/A N/A nprng uniform low N/A W_bound high W_bound size N/A self _filter_shape dtype N/A N/A theano config floatX N/A N/A self _W N/A N/A theano shared value init_W borrow True N/A N/A N/A self _W W N/A N/A b None N/A N/A init_b N/A N/A np zeros N/A N/A filter_shape N/A 0 dtype N/A N/A theano config floatX N/A N/A self _b N/A N/A theano shared value init_b borrow True N/A N/A N/A self _b b N/A N/A const_params N/A N/A N/A isinstance N/A self _b float N/A N/A N/A self _params N/A N/A self _W N/A N/A N/A self _params N/A N/A self _W N/A self _b f N/A N/A x N/A N/A N/A N/A satisfy_convnet N/A N/A z N/A N/A N/A N/A T nnet conv conv2d input x filters N/A self _W filter_shape N/A self _filter_shape border_mode N/A self _border_mode N/A N/A N/A N/A self _border_mode valid N/A N/A pad 0 N/A N/A N/A N/A self _border_mode same N/A N/A pad N/A N/A N/A N/A self _filter_shape N/A 2 1 2 N/A N/A pad N/A N/A N/A self _filter_shape N/A 2 1 N/A conv_op N/A FilterActs stride 1 partial_sum 1 pad pad N/A x N/A gpu_contiguous N/A N/A x dimshuffle 1 2 3 0 N/A W N/A gpu_contiguous N/A N/A N/A self _W dimshuffle 1 2 3 0 N/A z N/A N/A N/A conv_op x W dimshuffle 3 0 1 2 N/A N/A N/A self _pool_shape N/A 1 1 N/A N/A z N/A max_pool_2d input z ds N/A self _pool_shape ignore_border True N/A N/A isinstance N/A self _b float N/A N/A z N/A z N/A self _b N/A N/A z N/A z N/A N/A N/A self _b dimshuffle x 0 x x N/A N/A N/A self _active_func None N/A N/A z N/A N/A self _active_func z N/A N/A self _flatten N/A N/A z N/A N/A z flatten 2 N/A z N/A N/A N/A self _output N/A f N/A self _input N/A N/A self _dropout_output N/A f N/A self _dropout_input N/A N/A N/A N/A self _dropout_ratio None N/A N/A self _dropout_ratio 0 N/A N/A N/A self _output N/A N/A 1.0 N/A self _dropout_ratio N/A self _output N/A N/A self _dropout_output N/A dropout N/A self _dropout_output N/A self _dropout_ratio N/A input_shape N/A N/A self N/A N/A N/A N/A self _input_shape N/A property output_shape N/A N/A self N/A N/A N/A N/A self _output_shape N/A property get_norm N/A N/A self l N/A N/A N/A Return the norm of the filter matrix.

        Parameters
        ----------
        l : int
            The L?-norm.

        Returns
        -------
        out : theano.tensor.scalar
            The norm of the filter matrix.

         N/A N/A N/A N/A self _W norm l N/A get_squared_L2 N/A N/A self N/A N/A N/A N/A N/A T sum N/A N/A self _W 2 N/A N/A RegMultitaskLayer N/A Block N/A __init__ N/A N/A self input input_shape output_shape dropout_input dropout_ratio active_func w0 b0 W b const_params N/A None None None None None None None False N/A N/A N/A N/A N/A super RegMultitaskLayer self __init__ input dropout_input N/A N/A isinstance input_shape int N/A N/A N/A self _input_shape input_shape N/A N/A N/A N/A isinstance input_shape tuple N/A isinstance input_shape list N/A N/A N/A self _input_shape N/A N/A np prod input_shape N/A N/A N/A ValueError input_shape type error N/A N/A isinstance output_shape int N/A N/A N/A self _output_shape output_shape N/A N/A N/A N/A isinstance output_shape tuple N/A isinstance output_shape list N/A N/A N/A self _output_shape N/A N/A np prod output_shape N/A N/A N/A ValueError output_shape type error N/A N/A self _active_func active_func N/A N/A self _dropout_ratio dropout_ratio N/A N/A w0 None N/A N/A w0_bound N/A N/A np sqrt N/A 6.0 N/A N/A self _input_shape N/A self _output_shape N/A N/A active_func N/A actfuncs sigmoid N/A N/A w0_bound 4 N/A init_w0 N/A N/A np asarray N/A N/A nprng uniform low N/A w0_bound high w0_bound size N/A N/A self _input_shape 1 dtype N/A N/A theano config floatX N/A N/A self _w0 N/A N/A theano shared value init_w0 borrow True N/A N/A N/A self _w0 w0 N/A N/A b0 None N/A N/A init_b0 N/A N/A np asarray 0 N/A N/A theano config floatX N/A N/A self _b0 N/A N/A theano shared value init_b0 borrow True N/A N/A N/A self _b0 b0 N/A N/A W None N/A N/A W_bound N/A N/A np sqrt N/A 6.0 N/A N/A self _input_shape N/A self _output_shape N/A N/A active_func N/A actfuncs sigmoid N/A N/A W_bound 4 N/A init_W N/A N/A np asarray N/A N/A nprng uniform low N/A W_bound high W_bound size N/A N/A self _input_shape N/A self _output_shape dtype N/A N/A theano config floatX N/A N/A self _W N/A N/A theano shared value init_W borrow True N/A N/A N/A self _W W N/A N/A b None N/A N/A init_b N/A N/A np zeros N/A self _output_shape dtype N/A N/A theano config floatX N/A N/A self _b N/A N/A theano shared value init_b borrow True N/A N/A N/A self _b b N/A N/A const_params N/A N/A N/A self _params N/A N/A self _w0 N/A self _b0 N/A self _W N/A self _b f N/A N/A x N/A N/A N/A z0 N/A N/A N/A T dot x N/A self _w0 N/A self _b0 N/A z N/A N/A N/A T dot x N/A self _W N/A self _b N/A z N/A z N/A N/A z0 repeat N/A self _output_shape axis 1 N/A N/A N/A N/A self _active_func None z N/A N/A self _active_func z N/A N/A N/A self _output N/A f N/A self _input N/A N/A self _dropout_output N/A f N/A self _dropout_input N/A N/A N/A N/A self _dropout_ratio None N/A N/A self _dropout_ratio 0 N/A N/A N/A self _output N/A N/A 1.0 N/A self _dropout_ratio N/A self _output N/A N/A self _dropout_output N/A dropout N/A self _dropout_output N/A self _dropout_ratio N/A input_shape N/A N/A self N/A N/A N/A N/A self _input_shape N/A property output_shape N/A N/A self N/A N/A N/A N/A self _output_shape N/A property get_squared_L2_W N/A N/A self N/A N/A N/A N/A N/A T sum N/A N/A self _W 2 N/A get_squared_L2_w0 N/A N/A self N/A N/A N/A N/A N/A T sum N/A N/A self _w0 2 N/A get_regularization N/A N/A self N/A N/A N/A inner_product N/A N/A N/A N/A self _w0 repeat N/A self _output_shape axis 1 N/A self _W N/A inner_product N/A N/A inner_product sum axis 0 N/A N/A N/A T sum N/A inner_product 2 N/A N/A