A package for automatic clustering hyperparameter optmization
Project description
Hypercluster
A package for clustering optimization with sklearn.
Requirements:
pandas
numpy
scipy
matplotlib
seaborn
scikit-learn
hdbscan
Optional: snakemake
Install
pip install hypercluster
or
conda install -c bioconda hypercluster
Right now there are issue with the bioconda install on linux. Try the pip, if you are having problems.
Docs
https://hypercluster.readthedocs.io/en/latest/index.html
Examples
https://github.com/liliblu/hypercluster/tree/dev/examples
Quickstart example
import pandas as pd
from sklearn.datasets import make_blobs
import hypercluster
data, labels = make_blobs()
data = pd.DataFrame(data)
labels = pd.Series(labels, index=data.index, name='labels')
# With a single clustering algorithm
clusterer = hypercluster.utilities.AutoClusterer()
clusterer.fit(data).evaluate(
methods = hypercluster.constants.need_ground_truth+hypercluster.constants.inherent_metrics,
gold_standard = labels
)
hypercluster.visualize.visualize_evaluations(clusterer.evaluation_, multiple_clusterers=False)
# With a range of algorithms
evals, labels_df, labels_dict = optimize_clustering(data)
hypercluster.visualize.visualize_evaluations(evals)
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
hypercluster-0.1.2.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for hypercluster-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5421aee1d2b95fdf93f34543c9b41293206cd0ef7f81e2b54a065f6f1ad6561c |
|
MD5 | d5dd5c19779b50f58c3646bf22fba309 |
|
BLAKE2b-256 | da446489ed062fd885b163d342961510f85d273409d3ee2825bb79f54ca80061 |