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.]])]
|