Comments (7)
Yeah, in this case you'll probably have to do some custom handling of the gaps. I'd recommend concatenation of the data where possible.
from matrixprofile-ts.
@Modestas96 the code should be able to handle missing data, so long as the gaps are small relative to the subsequence length. Can you give some more details about the issue?
from matrixprofile-ts.
Understood, in my example the gaps are relatively big, so I was wondering if I have to deal with them specifically myself or the algorithm will be able to handle it. So what happens in my case is that algorithm returns matrix profile with only nan or inf values.
from matrixprofile-ts.
I'm curious about how to specify missing data. I used nan's but this broke the results.
import numpy as np
import matplotlib.pyplot as plt
from matrixprofile import *
x = np.linspace(0,100*np.pi,1001)
y = np.sin(x)
mp,ind = matrixProfile.stomp(y,25)
print("No NaNs:", mp[:10], ind[:10])
y[100] = np.nan
mp,ind = matrixProfile.stomp(y,25)
print("One NaN:", mp[:10], ind[:10])```
Output
No NaNs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [20. 21. 22. 23. 24. 25. 26. 27. 28. 29.]
One NaN: [nan nan nan nan nan nan nan nan nan nan] [inf inf inf inf inf inf inf inf inf inf]
Is there a different way to handle missing data?
from matrixprofile-ts.
@vanbenschoten This issue should not be closed. The current stomp implementation does not correctly handle missing values.
from matrixprofile-ts.
@tylerwmarrs agreed
from matrixprofile-ts.
The latest code version (0.0.7) takes care of this issue.
from matrixprofile-ts.
Related Issues (20)
- import error
- Support for multivariate time series HOT 5
- stumpy HOT 2
- Definition and explanation of parameters HOT 7
- Exclusion Zone
- Return actual distances from MASS instead of squared distances HOT 2
- motifs.motifs throws exceptions on larger arrays HOT 1
- Question: Finding Shared Motifs for Clustering HOT 2
- O(nĀ²) Memory Requirements for _stamp_parallel()
- Complexity Measure confuses mean and sum HOT 1
- Duplicate license files: remove License.md? HOT 4
- How to handle NaN and INF values in utils.py movmeanstd and movstd
- Stomp increment is missing HOT 2
- MPdist
- matrixProfile.stomp() gives nan and inf values HOT 5
- Annotation Vector file missing from latest matrixprofile-ts build HOT 3
- ValueError: Length of values does not match length of index HOT 1
- Pattern Recognition HOT 6
- What is the difference between matrixprofile and matrixprofile-ts? HOT 8
- Use of 'is' for non-object. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrixprofile-ts.