Module Expr Str Import alias identifier FunctionDef arguments args defaults vararg body Expr Str If CompareEq Call NameLoad NameLoad Num body Return NameLoad Assign NameStore NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return IfExp CompareEq Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A 
Created on Mon Jul 29 17:37:17 2013

Copyright (c) 2013-2014, CEA/DSV/I2BM/Neurospin. All rights reserved.

@author:  Edouard Duchesnay
@email:   edouard.duchesnay@cea.fr
@license: BSD 3-clause.
 N/A numpy np check_arrays N/A N/A N/A arrays N/A N/A Checks that:
        - Lists are converted to numpy arrays.
        - All arrays are cast to float.
        - All arrays have consistent first dimensions.
        - Arrays are at least 2D arrays, if not they are reshaped.

    Parameters
    ----------
    *arrays: Sequence of arrays or scipy.sparse matrices with same shape[0]
            Python lists or tuples occurring in arrays are converted to 2D
            numpy arrays.

    Examples
    --------
    >>> import numpy as np
    >>> check_arrays([1, 2], np.array([3, 4]), np.array([[1., 2.], [3., 4.]]))
    [array([[ 1.],
           [ 2.]]), array([[ 3.],
           [ 4.]]), array([[ 1.,  2.],
           [ 3.,  4.]])]
     N/A N/A N/A len arrays 0 N/A N/A None N/A n_samples None N/A checked_arrays N/A N/A array arrays N/A N/A array N/A N/A np asarray array dtype N/A np float N/A N/A n_samples None N/A N/A n_samples N/A N/A array shape N/A 0 N/A N/A N/A N/A array shape N/A 0 n_samples N/A N/A N/A ValueError N/A Found array with dim %d. Expected %d N/A N/A N/A array shape N/A 0 n_samples N/A N/A N/A len N/A array shape 1 N/A N/A array N/A array N/A N/A N/A N/A np newaxis N/A N/A N/A checked_arrays append array N/A N/A N/A N/A len checked_arrays 1 N/A checked_arrays N/A 0 checked_arrays N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod