Machine Learning/Dynamic Time Warping: Revision history

From Federal Burro of Information
Jump to navigationJump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 July 2024

  • curprev 14:3014:30, 24 July 2024David talk contribs 855 bytes +52 No edit summary
  • curprev 14:2914:29, 24 July 2024David talk contribs 803 bytes +52 No edit summary
  • curprev 14:2414:24, 24 July 2024David talk contribs 751 bytes +751 Created page with " sample script: <pre> import numpy as np import mlpy # Example sequences sequence1 = np.array([1, 3, 4, 9, 8, 2, 1]) sequence2 = np.array([1, 2, 4, 7, 8, 2, 1]) sequence3 = np.array([1, 2, 4, 7, 8, 2, 5]) # Compute DTW distances between sequences dist12, cost12, path12 = mlpy.dtw_std(sequence1, sequence2, dist_only=False) dist13, cost13, path13 = mlpy.dtw_std(sequence1, sequence3, dist_only=False) print("DTW distance between sequence1 and sequence2:", dist12) print("..."