Expanding Explainable K-Means Clustering
Project description
ExKMC
This repository is the official implementation of ExKMC: Expanding Explainable k-Means Clustering.
Installation
To install requirements:
pip install ExKMC
Usage
from ExKMC.Tree import Tree
from sklearn.datasets import make_blobs
# Initialize tree with up to 6 leaves, predicting 3 clusters
tree = Tree(k=3, max_leaves=6)
# Construct the tree, and return cluster labels
prediction = tree.fit_predict(make_blobs(100, 10, 3))
# Tree plot saved to filename
tree.plot('filename')
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
ExKMC-0.0.2.tar.gz
(135.1 kB
view hashes)
Built Distribution
Close
Hashes for ExKMC-0.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c52ed4580827e2560e417c44a1550781a2b7c881e488b8f977a989534efdc69 |
|
MD5 | 8a7f97214b1c37491c37bf5623dda73d |
|
BLAKE2b-256 | 128ade3f6aed697439f58189101f2999c9323f37d14435544b5c0c9616b68a34 |