简体   繁体   中英

Unable to import patch sklearn

after importing and installing required packages and libraries I am encountering an import error on patch_sklearn().

from sklearnx import patch_sklearn() patch_sklearn()

ImportError: cannot import name 'sparse_lsqr' from 'sklearn.utils.fixes' (C:\Users\yogis\AppData\Roaming\Python\Python38\site-packages\sklearn\utils\fixes.py)

Didn't know what you want to do here. But you can try this:

from sklearn.feature_extraction.image import extract_patches_2d

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM