You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm running the tutorial of PAA and SAX in the doc
importnumpyimportmatplotlib.pyplotaspltfromtslearn.generatorsimportrandom_walksfromtslearn.preprocessingimportTimeSeriesScalerMeanVariancefromtslearn.piecewiseimportPiecewiseAggregateApproximationfromtslearn.piecewiseimportSymbolicAggregateApproximation, \
OneD_SymbolicAggregateApproximationnumpy.random.seed(0)
# Generate a random walk time seriesn_ts, sz, d=1, 100, 1dataset=random_walks(n_ts=n_ts, sz=sz, d=d)
scaler=TimeSeriesScalerMeanVariance(mu=0., std=1.) # Rescale time seriesdataset=scaler.fit_transform(dataset)
n_paa_segments=10paa=PiecewiseAggregateApproximation(n_segments=n_paa_segments)
paa_data=paa.fit_transform(dataset)
paa_dataset_inv=paa.inverse_transform(paa_data)
After reading the docs, it seems that there is no function to find the index when the paa_data changes occured.
Describe the solution you'd like paa.get_index(paa_data) should return the index where the paa_data changes occured. That will be nice.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm running the tutorial of PAA and SAX in the doc
After reading the docs, it seems that there is no function to find the index when the paa_data changes occured.
Describe the solution you'd like
paa.get_index(paa_data)
should return the index where thepaa_data
changes occured. That will be nice.The text was updated successfully, but these errors were encountered: