Isn't scikit-learn version 1.0.2 supposed to have an attribute datasets
? If so, why am I getting an error?
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn as skl
>>> skl.__version__
'1.0.2'
>>> data = skl.datasets.load_diabetes()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'sklearn' has no attribute 'datasets'