INNER CODE UNIT · Python

to_np_array

matrix-profile-foundation/matrixprofile · matrixprofile/core.py:78

def to_np_array(a):
    """
    Helper function to convert tuple or list to np.ndarray.

    Parameters
    ----------
    a : Tuple, list or np.ndarray
        The object to transform.

    Returns
    -------
    The np.ndarray.

    Raises
    ------
    ValueError
        If a is not a valid type.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…