Git Product home page Git Product logo

star-clustering's Introduction

Star Clustering

Introduction

The Star Clustering algorithm is a clustering technique that is loosely inspired and analogous to the process of star system formation. Its purpose is as an alternative clustering algorithm that does not require knowing the number of clusters in advance or any hyperparameter tuning.

Installation

The following dependencies should be installed:

  • numpy

Setup

It is recommended that you have Scikit-Learn as the implementation provided here is meant to work with Scikit-Learn as a drop in replacement for other algorithms.

The actual algorithm is located in star_clustering.py and can be called by the import statement:

from star_clustering import StarCluster

Then create an object to instantiate an instance of the algorithm:

star = StarCluster()

Then call the fit or predict functions as you would any other clustering algorithm in Scikit-Learn.

Test Scripts

Three test scripts are provided that are meant to show the effectiveness of the algorithm on very different types of data.

  • plot_cluster_comparison.py
  • word_vectors_test.py
  • plot_cluster_iris.py

Note that the word vectors test requires a copy of the FastText pretrained word vectors or some equivalent, which is not provided here.

Example Plot Results

Performance On Various Synthetic Test Data

Plot Cluster Comparison - Star Clustering

Comparison To Other Algorithms

Plot Cluster Comparison - Star Clustering

Performance On Iris Data

Plot Cluster Iris - Star Clustering

Iris Data Ground Truth

Plot Cluster Iris - Ground Truth

Licence

Apache 2.0

star-clustering's People

Contributors

josephius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.