Code Monkey home page Code Monkey logo

tssearch's People

Contributors

dmfolgado avatar mbarandas avatar mluacnunes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tssearch's Issues

Color assignment error in visualization.py::plot_search_distance_result

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

unsupported pickle protocol: 5

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 data

ValueError: 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.