Git Product home page Git Product logo

clustering's Introduction

Clustering

Image clustering using Python OpenCV

alt text

Install

git clone https://github.com/xsyann/clustering.git

Usage

python clustering.py

Requirements

cv2, numpy, matplotlib, scipy, urllib2, PyQt5

Matplotlib Qt5 compatibility: matplotlib/matplotlib#3072

Features

alt text

Elbow

  • Draw the green line l passing through the first and the last point of the blue curve.
  • Select the maximum length of the red segment perpendicular to the line l and passing through the curve point.

alt text

Threshold

  • Reduce the compactness in range [0-1].
  • Select the first point below the threshold defined in the Clusterer class.

alt text

Gap statistic

  • Gap statistic by Robert Tibshirani, Guenther Walther and Trevor Hastie.
  • Stanford University, USA, November 2000.

alt text

Gap Threshold

  • Reduce the compactness in range [0-1].
  • Compute the gap between each neighbors point.
  • Select the first point where the gap is below the threshold defined in the Clusterer class.

alt text

f(k)

  • Selection of K in K-means clustering, D T Pham�, S S Dimov, and C D Nguyen.
  • Manufacturing Engineering Centre, Cardiff University, Cardiff, UK, 27 September 2004.

alt text

Slider

  • Reduce the compactness and the cluster count in range [0-1].
  • Draw a line between (0, 1) and (1, 0) and place a goal on this line depending of a percentage.
  • Select the closest point to the goal.

alt text


One clustering feature

alt text

Two clustering features

alt text

Three clustering features

alt text

References

clustering's People

Watchers

James Cloos avatar Yann KOËTH 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.