INNER CODE UNIT · Python

clean_nan_inf

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

def clean_nan_inf(ts):
    """
    Replaces nan and inf values with zeros per matrix profile algorithms.

    Parameters
    ----------
    ts: array_like
        Time series to clean.
    
    Returns
    -------
    np.ndarray - The cleaned time series.

    Raises
    ------
    ValueError
        When the ts is not array like.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…