TypeError: sparse matrix length is ambiguous; use getnnz() or shape[0]

错误解析:

TypeError:稀疏矩阵长度不明确使用getnnz()或shape[0]

解决方案:

 

posted @ 2023-05-25 23:25  化繁为简,弃快从慢  阅读(266)  评论(0编辑  收藏  举报