Send
Close Add comments:
(status displays here)
Got it! This site "robinsnyder.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website. Note: This appears on each machine/browser from which this site is accessed.
Python: Clustering
1. Make blobs
The make_blobs method of the sklearn.datasets module provides a way to create groups of points
2. Python blob example
Here is the Python code [#1]
Here is the output of the Python code.
3. Notes
The underscore is used on the LHS (Left Hand Side) of the assignment statement to indicate that that return value is not needed in this situation.
There are 6 centers.
The random_state is 0 so that the same data is obtained each time the program is run.
4. End of page