Skip to main content

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


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)

Uploaded Source

Built Distribution

ExKMC-0.0.2-cp37-cp37m-win_amd64.whl (82.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page