在python中使用fastdtw根据输入顺序不同的距离

2024-10-02 12:38:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我想找到时间序列和使用fastdtw(https://github.com/slaypni/fastdtw/tree/master/fastdtw)在python中执行动态时间扭曲之间的相似性。 计算的距离有时会随输入顺序而变化,特别是对于长时间序列。 下面是一个例子:

x = np.random.rand(44)
y = np.random.rand(40)
d1, inx1 = fastdtw(y, x)
d2, inx2= fastdtw(y, x)
d1, d2

知道为什么吗?在


Tags: httpsgithubmastercomtreenp时间动态

热门问题