TDAmeritrade / stumpy

STUMPY is a powerful and scalable Python library for modern time series analysis

Home Page:https://stumpy.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor typo in `/docs /Tutorial_Shapelet_Discovery.ipynb`

NimaSarajpoor opened this issue · comments

The following code cell in the notebook /docs /Tutorial_Shapelet_Discovery.ipynb has a minor typo.

Need to fix beteen

def distance_to_shapelet(data, shapelet):
    """
    Compute the minimum distance beteen each data sample and a shapelet of interest
    """
    data = np.asarray(data)
    X = np.empty(len(data))
    for i in range(len(data)):
        D = stumpy.mass(shapelet, data[i])
        X[i] = D.min()

    return X.reshape(-1, 1)

Can this be assigned to me?