{"id":13679618,"url":"https://github.com/google-research/soft-dtw-divergences","last_synced_at":"2025-04-24T07:30:28.388Z","repository":{"id":97526586,"uuid":"314069451","full_name":"google-research/soft-dtw-divergences","owner":"google-research","description":"An implementation of soft-DTW divergences.","archived":false,"fork":false,"pushed_at":"2021-10-14T14:27:20.000Z","size":17,"stargazers_count":134,"open_issues_count":1,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T01:01:51.904Z","etag":null,"topics":["dtw","dynamic-time-warping","soft-dtw","time-series"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-11-18T22:05:43.000Z","updated_at":"2025-03-05T20:01:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"41e92c32-9af1-4362-bd7c-2f06c9ebccb4","html_url":"https://github.com/google-research/soft-dtw-divergences","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsoft-dtw-divergences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsoft-dtw-divergences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsoft-dtw-divergences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Fsoft-dtw-divergences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-research","download_url":"https://codeload.github.com/google-research/soft-dtw-divergences/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250582773,"owners_count":21453911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dtw","dynamic-time-warping","soft-dtw","time-series"],"created_at":"2024-08-02T13:01:07.548Z","updated_at":"2025-04-24T07:30:28.103Z","avatar_url":"https://github.com/google-research.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Differentiable Divergences between Time Series\n==============================================\n\nAn implementation of soft-DTW divergences.\n\nExample\n-------\n\n```python\nimport numpy as np\nfrom sdtw_div.numba_ops import sdtw_div, sdtw_div_value_and_grad\n\n# Two 3-dimensional time series of lengths 5 and 4, respectively.\nX = np.random.randn(5, 3)\nY = np.random.randn(4, 3)\n\n# Compute the divergence value. The parameter gamma controls the regularization strength. \nvalue = sdtw_div(X, Y, gamma=1.0)\n\n# Compute the divergence value and the gradient w.r.t. X.\nvalue, grad = sdtw_div_value_and_grad(X, Y, gamma=1.0)\n```\nSimilarly, we can use `sharp_sdtw_div`, `sharp_sdtw_div_value_and_grad`,\n`mean_cost_div` and `mean_cost_div_value_and_grad`.\n\nInstall\n--------\n\nRun `python setup.py install` or copy the files to your project.\n\nReference\n----------\n\n\u003e Differentiable Divergences between Time Series \u003cbr/\u003e\n\u003e Mathieu Blondel, Arthur Mensch, Jean-Philippe Vert \u003cbr/\u003e\n\u003e [arXiv:2010.08354](https://arxiv.org/abs/2010.08354)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Fsoft-dtw-divergences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-research%2Fsoft-dtw-divergences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Fsoft-dtw-divergences/lists"}