Skip to content Skip to sidebar Skip to footer

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:

  1. import make_blobs: from sklearn.datasets import make_blobs
  2. Replace this line: X, y = mglearn.datasets.make_forge() with this line: X,y = make_blobs()
  3. Run your program

Post a Comment for "Import Make_blobs From Scikit-learn"