首页 > 编程语言 > 详细

DTW + python 矩阵操作 + debug

时间:2020-01-19 01:04:18      阅读:141      评论:0      收藏:0      [点我收藏+]

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.

 

DTW + python 矩阵操作 + debug

原文:https://www.cnblogs.com/dulun/p/12210829.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!