fraunhoferportugal / tssearch Goto Github PK
View Code? Open in Web Editor NEWA Python library for time series subsequence search.
Home Page: https://tssearch.readthedocs.io/
License: BSD 3-Clause "New" or "Revised" License
A Python library for time series subsequence search.
Home Page: https://tssearch.readthedocs.io/
License: BSD 3-Clause "New" or "Revised" License
tssearch/utils/visualization.py, function plot_search_distance_result() doesn't map colors correctly. In particular the minimum and maximum distance colors are incorrectly assigned to out of range values, making the plot misleading.
Line 114 in Scaling of distance for color lookup is incorrect:
d_idx = int((d - min_dist) * cmap.N / delta_dist) - 1 # INCORRECT
correct code shown below.
d_idx = int((d - min_dist) * (cmap.N -1) / delta_dist)
Sample values with incorrect and corrected scaling
tsssearch_plot_bug.txt
Hi there,
I tried to run of the examples but i ran into an issue while loading the ecg sample data with tssearch.load_ecg_example()
I get the following error:
ValueError Traceback (most recent call last)
in ()
1 # Load the query, (optional) weight vector and sequence
----> 2 data = tssearch.load_ecg_example()
3
4 # Selects the Dynamic Time Warping (DTW) as the distance for the segmentation
5 cfg = tssearch.get_distance_dict(["Dynamic Time Warping"])/usr/local/lib/python3.7/dist-packages/tssearch/examples/ecg_example_data.py in load_ecg_example()
8 filename = tssearch.path[0] + "/examples/ecg.pickle"
9 with open(filename, "rb") as handle:
---> 10 data = pickle.load(handle)
11
12 return dataValueError: unsupported pickle protocol: 5
_
It seems to me that there is some conflict with the pickle version. I solved it by copy the load_ecg_example() definition into my python script and installing pickle5 with pip. Could you please fix this issue for future users?
Cheers,
Alex
Just a quick reminder to please add the novainstruments module to the requirements file, as it is not automatically imported upon setup. Thank you for all of your hard work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.