Import Make_blobs From Scikit-learn
I am getting next Warning: D:\Programming\Python\ML\venv\lib\site-packages\sklearn\utils\deprecation.py:77: DeprecationWarning: Function make_blobs is deprecated; Please import mak
Solution 1:
Use the following to import make_blobs
that will not give you any warning.
from sklearn.datasets import make_blobs
Solution 2:
- import make_blobs:
from sklearn.datasets import make_blobs
- Replace this line:
X, y = mglearn.datasets.make_forge()
with this line:X,y = make_blobs()
- Run your program
Post a Comment for "Import Make_blobs From Scikit-learn"