Finding optimal k in k-means using bayesian optimization
Project description
Example of work:
from bayeskmeans.bayes_kmeans import BayesKMeans from bayeskmeans.bayes_visualize import BayesKMeansVisualize from sklearn.datasets import make_blobs
data = make_blobs(n_samples=1000, n_features=2, centers=21, cluster_std=5, center_box=(-300, 300)) data = data[0]
bayesKMeans = BayesKMeans(data)
bayesKMeans.find_k()
print(bayesKMeans.found_k)
visual = BayesKMeansVisualize(bayesKMeans) visual.show_bayesian_plot()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bayesKMeans-0.3.9.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file bayesKMeans-0.3.9.tar.gz
.
File metadata
- Download URL: bayesKMeans-0.3.9.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6204faac2e3b3f6244145fe73c2f770a67bfcc15de056f9cb13740914aa13bb |
|
MD5 | de1a07282fc2b056333cf35998585c36 |
|
BLAKE2b-256 | 4b540b1b70e0c87205b9aa198e8358dd61b3e5f2ea7e8b633c39d8ab1a48cfdc |
File details
Details for the file bayesKMeans-0.3.9-py3-none-any.whl
.
File metadata
- Download URL: bayesKMeans-0.3.9-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0acc579053461a8ef433afe9bcd8999e8f53dad8598997aad2a39ef1113734 |
|
MD5 | 445bb4ad878ef156885a274ad20d3f10 |
|
BLAKE2b-256 | b5acf62c0077ba1e12fe4f38893f33a0ef49b221ff89659c4ab37d8859f8f0de |