Closed ivan-marroquin closed 1 year ago
Hi,
What you want is scenario A but the reshaping is wrong: if you have only one time series (i.e., one sample), you need to reshape your 1D array as a 2D array with one row: X = np.array([0, 4, 2, 1, 7, 6, 3, 5]).reshape(1, -1)
n_timestamps
is the number of time points (values) in each time series. In your example, your time series has 8 values (n_timestamps=8
)
This convention is used because one needs a set of samples (and not just one sample) to perform machine learning, which is why the input is assumed to be a set of univariate time series (2D array).
Hope this helps you a bit and do not hesitate to ask more questions if needed.
Best, Johann
Hi @johannfaouzi
Thanks for your quick response. Ivan
Hi,
Thanks for making this great package available!
The input data is expected to have "n samples" x "n time stamps" and be univariate time series. If I have only one time series, and I used the SymbolicAggregateApproximation as follows:
a) First scenario
b) Second scenario
My questions are:
Thanks,
Ivan