Comments (2)
@Philliec459
Thank you for your question, and welcome to the STUMPY community!
I love this library.
Great! Glad to hear it!!
However, it picks up similar trends but does not match the magnitudes. Is there a way to do this?
If magnitude is important in your data, then you need to set the parameter normalize
to False.
w10_mp = stumpy.stump(
T_A = df['GR'],
m = m,
T_B = df2['GR'],
ignore_trivial = False,
normalize=False,
)
The parameter normalize
has the default value of True
, which z-normalizes subsequences prior to computing distances. Read more in the documentation
Note that your current code uses the default value True
for the normalize
parameter. Therefore, after finding the closest match, you need to z-normalize each of those before plotting them against each other. In case that matters, each subsequence S
can be z-normalized as follows:
import stumpy
z_normalized_S = stumpy.core.z_norm(S)
from stumpy.
Thank you Nima, I did not realize the normalize was default True, and the documentation does point that out. I am on the learning curve with this library. I see huge potential here once I figure it out. I also find that using Panel (or ipywidgets in notebook) is very useful.
This is now working much better with a much better Matrix Profile. I am getting a pretty good match everywhere, but the end of the data (bottom of the well) the GR does increase on both wells, but the program matches my hight GR interval at the bottom of Well 10 with a high Matrix Profile number to a low GR interval with a low Matrix Profile number in Well 31.
I would think it would find the similar, hight GR pattern at the bottom of Well 31 ?
Also, as a new user I have no idea of how to implement your second comment:
"Therefore, after finding the closest match, you need to z-normalize each of those before plotting them against each other. In case that matters, each subsequence S can be z-normalized as follows:"
z_normalized_S = stumpy.core.z_norm(S)
from stumpy.
Related Issues (20)
- Speeding up the computation of sliding dot product with fft HOT 90
- Computing matrix profile while considering a custom transformation for subsequences HOT 10
- Some issues in Tutorial_Multidimensional_Motif_Discovery and MDL HOT 6
- Ts_subseq_isconstant parameter in ostinato algorithm HOT 2
- Faster Non-normalized Matrix Profiles
- `setuptools` Removed From Python 3.12
- Remove `pkg_resources` Dependency HOT 1
- Numba Python Version Compatibility Update
- Numba Python Version Compatibility Update
- Numba Python Version Compatibility Update
- Incorrect MIN Python Version in README HOT 6
- Bump Supported Python Version to 3.12
- Improving Multi-processor Performance HOT 3
- No module named 'pkg_resources' HOT 2
- Cache-Oblivious Algorithms (COA) HOT 2
- Add Named Attributes to Matrix Profile HOT 3
- Optimizing 6-step FFT algorithm HOT 8
- NumPy Installation Fails
- Add additional checks to `min.py`
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 stumpy.