Skip to content

Instantly share code, notes, and snippets.

@nphilou
Created October 30, 2019 15:12
Show Gist options
  • Select an option

  • Save nphilou/3fc77b9b290a9bb23375954282b7115b to your computer and use it in GitHub Desktop.

Select an option

Save nphilou/3fc77b9b290a9bb23375954282b7115b to your computer and use it in GitHub Desktop.
import numpy as np
from giotto.time_series import TakensEmbedding
if __name__ == '__main__':
max_dim = 4
embedding_time_delay = 2
print('fixed param')
x = np.array([2, 1, 1, 1, 1, 1, 1, 1, 1, 1])
for i in range(1, 5):
for j in [1, 2]:
embedder = TakensEmbedding(parameters_type='fixed', dimension=i,
time_delay=j, n_jobs=1)
y = embedder.fit_transform(x)
print('search param')
umbe_embedder = TakensEmbedding(parameters_type='search',
dimension=max_dim,
time_delay=embedding_time_delay, n_jobs=1)
umbe_embedder.fit_transform(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment