我尝试在Python中执行以下数组减法: import numpy as npa = np.array([[1, 2], [3但是,如果我将上面的数组a更改为稀疏矩阵: a = csr_matrix(a) 如果正确执行上面的步骤,我会得到一个错误: IndexError: Index dimension must be <=
word in non_useful_words] tdm[:,index]=0 我想手动为tdm矩阵中的某些项设置零权重site-packages\scipy\sparse\compressed.py:730: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix