Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str Assign NameStore CompareGt SubscriptLoad NameLoad ExtSlice Slice Index Num Num Assign NameStore CompareGt SubscriptLoad NameLoad ExtSlice Slice Index Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num Assign SubscriptStore NameLoad Index CompareGt NameLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore CompareGt NameLoad BinOpDiv Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr CompareGt NameLoad BinOpDiv Num Num CompareLtE NameLoad BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr CompareGt NameLoad BinOpDiv Num Num CompareLtE NameLoad BinOpDiv Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad CompareLt NameLoad BinOpDiv Num Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad CompareLt NameLoad BinOpDiv Num Num Num Assert BoolOpAnd Call AttributeLoad NameLoad attr CompareGtE NameLoad Num Call AttributeLoad NameLoad attr CompareLtE NameLoad Num Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Num Num Num FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num Num Num body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword TupleLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num decorator_list decorator_list
N/A N/A 
The four regions task. A synthetic dataset from the late 1980s,
a 4-class classification problem.
 N/A __authors__ David Warde-Farley N/A __copyright__ Copyright 2013, Universite de Montreal N/A __credits__ N/A David Warde-Farley N/A __license__ 3-clause BSD N/A __maintainer__ David Warde-Farley N/A __email__ wardefar@iro N/A numpy np theano config pylearn2.datasets DenseDesignMatrix pylearn2.utils.rng make_np_rng _four_regions_labels N/A N/A points N/A N/A N/A 
    Returns labels for points in [-1, 1]^2 from the
    "four regions" benchmark task first described by
    Singhal and Wu.

    Parameters
    ----------
    points : array_like, 2-dimensional
        An (N, 2) list of 2-dimensional points.

    Returns
    -------
    labels : ndarray, 1-dimensional
        An N-length array of labels in [1, 2, 3, 4].

    References
    ----------
    .. [1] S. Singhal and L. Wu, "Training multilayer perceptrons
      with the extended Kalman algorithm". Advances in Neural
      Information Processing Systems, 1, (1988) pp 133-140.
      http://books.nips.cc/papers/files/nips01/0133.pdf
     N/A points N/A N/A np asarray points N/A region N/A N/A np zeros N/A N/A points shape N/A 0 dtype uint8 N/A tophalf N/A N/A points N/A N/A N/A 1 0 N/A righthalf N/A N/A points N/A N/A N/A 0 0 N/A dists N/A N/A np sqrt N/A N/A np sum N/A points 2 axis 1 N/A N/A region N/A N/A dists N/A N/A np sqrt 2 255 N/A outer N/A dists N/A 5.0 6.0 N/A N/A region N/A N/A N/A np logical_and tophalf outer 3 N/A N/A region N/A N/A N/A np logical_and N/A N/A np logical_not tophalf outer 0 N/A firstring N/A N/A np logical_and N/A dists N/A 1.0 6.0 N/A dists N/A 1.0 2.0 N/A secondring N/A N/A np logical_and N/A dists N/A 1.0 2.0 N/A dists N/A 5.0 6.0 N/A N/A region N/A N/A N/A np logical_and firstring righthalf 2 N/A N/A region N/A N/A N/A np logical_and secondring N/A N/A np logical_not righthalf 2 N/A N/A region N/A N/A N/A np logical_and secondring righthalf 1 N/A N/A region N/A N/A N/A np logical_and N/A N/A np logical_not righthalf N/A dists N/A 1.0 2.0 1 N/A N/A region N/A N/A N/A np logical_and righthalf N/A dists N/A 1.0 6.0 1 N/A N/A N/A N/A np all N/A region 0 N/A N/A np all N/A region 3 N/A region N/A FourRegions N/A DenseDesignMatrix N/A N/A 
    Constructs a dataset based on the four regions
    benchmark by sampling random uniform points in [-1, 1]^2
    and constructing the label.

    Parameters
    ----------
    num_examples : int
        The number of examples to generate.

    rng : RandomState or seed
        A random number generator or a seed used to construct it.

    References
    ----------
    .. [1] S. Singhal and L. Wu, "Training multilayer perceptrons
      with the extended Kalman algorithm". Advances in Neural
      Information Processing Systems, 1, (1988) pp 133-140.
      http://books.nips.cc/papers/files/nips01/0133.pdf
     N/A _default_seed N/A 2013 5 17 __init__ N/A N/A self num_examples rng N/A N/A 2013 5 17 N/A N/A 
        .. todo::

            WRITEME
         N/A rng N/A make_np_rng rng N/A self _default_seed which_method uniform N/A X N/A N/A rng uniform -1 1 size N/A num_examples 2 N/A y N/A _four_regions_labels X N/A N/A N/A N/A super FourRegions self __init__ X X y y y_labels 4 N/A N/A