Giter Site home page Giter Site logo

clique-based-classifier's Introduction

Implementation of a classifier based on a grid-based clustering algorithm

Here we are implementing a classifier based on a grid-based clustering algorithm called clique algorithm.

Clique Algorithm

The pyclustering library provides the implementation of Clique. However, it does not offer any predict function to be used in a classification problem; therefore, I implemented a wrapper that contains a predict function. The predict function required two things:

  1. Recognizing the category(cluster) of given input(x) in that specific clustering model The clique algorithm will divide the space into a number of grids, which are based on the interval argument of the model; These grids are called cells. The __contains__ function implemented for these cells will tell us whether a specific coordinate belongs to them or not. Unfortunately, this part might be time-consuming, especially if the number of cells is high.

This library will not give us the information about what category cell's points belong to, so I labeled all cells by checking one of its points' cluster and labeling the whole cell with that cluster's label. This is true because, actually, this algorithm categorizes all of one grid's data into one cluster. Additionally, those cells whose points did not belong to any cluster are considered noise and will inherit the label of the noise cluster.

  1. Labeling clusters with true categories(y) Every cluster will be labeled to the actual label of the majority of its points. The noise cluster is not exceptional.

clique-based-classifier's People

Contributors

bornabr avatar

Stargazers

 avatar

Watchers

 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.