Module Expr Str Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias Import alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Assert CompareEq SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Index Num Num Assign TupleStore NameStore NameStore NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If Call NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr Index Num Return TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad keyword Num comprehension NameStore TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr keyword Num comprehension NameStore NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad Call NameLoad NameLoad attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Return ListComp SubscriptLoad NameLoad ExtSlice Slice Index NameLoad comprehension NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index Num comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice BinOpMult NameLoad AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad BinOpMod BinOpAdd SubscriptLoad NameLoad Index NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMod BinOpAdd SubscriptLoad NameLoad Index NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Yield TupleLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore Call NameLoad Num NameLoad NameLoad body Assign SubscriptStore NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
Several utilities to evaluate an ALC on the dataset, to iterate over
minibatches from a dataset, or to merge three data with given proportions
 N/A logging N/A os N/A functools itertools repeat N/A warnings N/A numpy N/A scipy theano.compat.six.moves reduce xrange N/A theano N/A N/A matplotlib pyplot mpl_toolkits.mplot3d Axes3D N/A N/A N/A ImportError N/A N/A N/A N/A warnings warn Could not import some dependencies. pylearn2.utils.rng make_np_rng N/A logger N/A N/A logging getLogger __name__ do_3d_scatter N/A N/A x y z figno title N/A None None N/A N/A 
    Generate a 3D scatterplot figure and optionally give it a title.

    Parameters
    ----------
    x : WRITEME
    y : WRITEME
    z : WRITEME
    figno : WRITEME
    title : WRITEME
     N/A fig N/A N/A pyplot figure figno N/A ax N/A Axes3D fig N/A N/A N/A ax scatter x y z N/A N/A N/A ax set_xlabel X N/A N/A N/A ax set_ylabel Y N/A N/A N/A ax set_zlabel Z N/A N/A N/A pyplot suptitle title N/A save_plot N/A N/A repr path name title N/A figure.pdf features N/A N/A 
    .. todo::

        WRITEME
     N/A N/A N/A N/A N/A N/A repr get_value borrow True shape N/A 1 3 N/A N/A x y z N/A N/A N/A repr get_value borrow True T N/A N/A do_3d_scatter x y z N/A filename N/A N/A N/A os path join path name N/A N/A N/A pyplot savefig filename format pdf N/A N/A N/A logger info N/A N/A ... figure saved: {0} format filename N/A filter_labels N/A N/A train label classes N/A None N/A N/A 
    Filter examples of train for which we have labels

    Parameters
    ----------
    train : WRITEME
    label : WRITEME
    classes : WRITEME

    Returns
    -------
    WRITEME
     N/A N/A isinstance train N/A N/A N/A theano tensor sharedvar SharedVariable N/A N/A train N/A N/A train get_value borrow True N/A N/A isinstance label N/A N/A N/A theano tensor sharedvar SharedVariable N/A N/A label N/A N/A label get_value borrow True N/A N/A N/A N/A isinstance train N/A numpy ndarray N/A N/A N/A scipy sparse issparse train N/A N/A N/A TypeError train must be a numpy array, a scipy sparse matrix, or a theano shared array N/A N/A classes None N/A N/A label N/A label N/A N/A N/A classes N/A N/A N/A N/A scipy sparse issparse train N/A N/A idx N/A N/A N/A N/A N/A label sum axis 1 nonzero N/A 0 N/A N/A N/A train N/A idx N/A label N/A idx N/A condition N/A N/A label any axis 1 N/A N/A tuple N/A N/A N/A var compress condition axis 0 N/A var N/A train label N/A nonzero_features N/A N/A data combine N/A None N/A N/A 
    Get features for which there are nonzero entries in the data.

    Parameters
    ----------
    data : list of matrices
        List of data matrices, either in sparse format or not.
        They must have the same number of features (column number).
    combine : function, optional
        A function to combine elementwise which features to keep.
        Default keeps the intersection of each non-zero columns.

    Returns
    -------
    indices : ndarray object
        Indices of the nonzero features.

    Notes
    -----
    I would return a mask (bool array) here, but scipy.sparse doesn't appear to
    fully support advanced indexing.
     N/A N/A combine None N/A N/A combine N/A N/A functools partial reduce N/A numpy logical_and N/A masks N/A N/A N/A N/A numpy asarray N/A N/A N/A subset sum axis 0 N/A subset data squeeze N/A nz_feats N/A N/A N/A N/A combine masks nonzero N/A 0 N/A nz_feats N/A filter_nonzero N/A N/A data combine N/A None N/A N/A 
    Filter non-zero features of data according to a certain combining function

    Parameters
    ----------
    data : list of matrices
        List of data matrices, either in sparse format or not.
        They must have the same number of features (column number).
    combine : function
        A function to combine elementwise which features to keep.
        Default keeps the intersection of each non-zero columns.

    Returns
    -------
    indices : ndarray object
        Indices of the nonzero features.
     N/A nz_feats N/A nonzero_features data combine N/A N/A N/A set N/A N/A N/A nz_feats N/A set data N/A BatchIterator N/A object N/A N/A 
    Builds an iterator object that can be used to go through the minibatches
    of a dataset, with respect to the given proportions in conf

    Parameters
    ----------
    dataset : WRITEME
    set_proba : WRITEME
    batch_size : WRITEME
    seed : WRITEME
     __init__ N/A N/A self dataset set_proba batch_size seed N/A 300 N/A N/A flo N/A numpy floor N/A sub N/A numpy subtract N/A mul N/A numpy multiply N/A div N/A numpy divide N/A mod N/A numpy mod N/A N/A self batch_size batch_size N/A N/A isinstance N/A dataset N/A 0 N/A theano Variable N/A N/A N/A self dataset N/A N/A N/A set get_value borrow True N/A set dataset N/A N/A N/A self dataset dataset N/A set_sizes N/A N/A N/A set shape N/A 0 N/A set N/A self dataset N/A set_batch N/A N/A float N/A self batch_size N/A i N/A xrange 3 N/A set_range N/A div N/A mul set_proba set_sizes set_batch N/A set_range N/A map int N/A N/A numpy ceil set_range N/A set_limit N/A N/A numpy ceil N/A N/A numpy divide set_sizes set_batch N/A N/A self limit N/A map int set_limit N/A set_tsign N/A sub set_limit N/A flo N/A div set_sizes set_batch N/A set_tsize N/A mul set_tsign N/A flo N/A div set_range set_limit N/A l_trun N/A mul N/A flo N/A div set_range set_limit N/A mod set_sizes set_batch N/A l_full N/A mul N/A sub set_range set_tsize set_batch N/A N/A self length N/A N/A sum l_full N/A sum l_trun N/A index_tab N/A N/A i N/A xrange 3 N/A N/A N/A N/A index_tab extend N/A repeat i N/A set_range N/A i N/A N/A self seed seed N/A rng N/A make_np_rng seed which_method permutation N/A N/A self permut N/A N/A rng permutation index_tab N/A __iter__ N/A N/A self N/A N/A N/A Generator function to iterate through all minibatches N/A counter N/A 0 0 0 N/A chosen N/A self permut N/A N/A index N/A counter N/A chosen N/A minibatch N/A N/A N/A self dataset N/A chosen N/A N/A index N/A self batch_size N/A N/A index 1 N/A self batch_size N/A N/A counter N/A chosen N/A N/A N/A counter N/A chosen 1 N/A N/A self limit N/A chosen N/A N/A minibatch N/A __len__ N/A N/A self N/A N/A N/A Return length of the weighted union N/A N/A self length N/A by_index N/A N/A self N/A N/A N/A Same generator as __iter__, but yield only the chosen indexes N/A counter N/A 0 0 0 N/A chosen N/A self permut N/A N/A index N/A counter N/A chosen N/A N/A counter N/A chosen N/A N/A N/A counter N/A chosen 1 N/A N/A self limit N/A chosen N/A N/A N/A chosen index N/A N/A minibatch_map N/A N/A fn batch_size input_data output_data output_width N/A None None N/A N/A 
    Apply a function on input_data, one minibatch at a time.

    Storage for the output can be provided. If it is the case,
    it should have appropriate size.

    If output_data is not provided, then output_width should be specified.

    Parameters
    ----------
    fn : WRITEME
    batch_size : WRITEME
    input_data : WRITEME
    output_data : WRITEME
    output_width : WRITEME

    Returns
    -------
    WRITEME
     N/A N/A output_width None N/A N/A N/A output_data None N/A N/A N/A ValueError output_data or output_width should be provided N/A output_width N/A N/A output_data shape N/A 1 N/A output_length N/A N/A input_data shape N/A 0 N/A N/A output_data None N/A N/A output_data N/A N/A numpy empty N/A output_length output_width N/A N/A N/A N/A N/A output_data shape N/A 0 N/A N/A input_data shape N/A 0 N/A output_data should have the same length as input_data N/A N/A output_data shape N/A 0 N/A N/A input_data shape N/A 0 N/A i N/A xrange 0 output_length batch_size N/A N/A N/A output_data N/A i N/A i batch_size N/A fn N/A input_data N/A i N/A i batch_size N/A output_data N/A