DTW + python 矩阵操作 + debug

你离开我真会死。 提交于 2020-01-19 00:57:10

1.  from here.

diagonalReturn specified diagonals.

diagflatCreate a 2-D array with the flattened input as a diagonal.

traceSum along diagonals.

triuUpper triangle of an array.

trilLower triangle of an array.

2. DTW distance. dtaidistance

from dtaidistance import dtw

ds = dtw.distance_matrix_fast(x)

3. sparce matrix in csr format.

4. Bug:        AttributeError: module 'community' has no attribute 'best_partition'

import community

但是安装包是不是安装community,而是安装pip intall python-louvain.

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!