标签:tee cut array parse ace ast spec python adt
1. from here.
diagonal
Return specified diagonals.
diagflat
Create a 2-D array with the flattened input as a diagonal.
trace
Sum along diagonals.
triu
Upper triangle of an array.
tril
Lower 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.
标签:tee cut array parse ace ast spec python adt
原文地址:https://www.cnblogs.com/dulun/p/12210829.html