‘spmatrix‘ has no attribute ‘__div__‘. Did you mean: ‘__dir__‘?

问题: ‘spmatrix’ has no attribute ‘div’. Did you mean: ‘dir’?

解决方法:
使用1.2.1版本的scikit-learn
conda install -c conda-forge scikit-learn=1.2.1 scipy=1.10.1

1.2.2会有这个问题

你可能感兴趣的:(深度学习,机器学习,人工智能)