Created
October 30, 2019 15:12
-
-
Save nphilou/3fc77b9b290a9bb23375954282b7115b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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