Answers for "AttributeError: module 'sklearn' has no attribute 'decomposition'"

0

AttributeError: module 'sklearn' has no attribute 'decomposition'

sklearn does not automatically import its subpackages. 
If you only imported via: import sklearn
then it wont work.
Import with importsklearn.<you subpackage> instead.
Posted by: Guest on May-26-2021

Code answers related to "AttributeError: module 'sklearn' has no attribute 'decomposition'"

Browse Popular Code Answers by Language