An open API service indexing awesome lists of open source software.

https://github.com/thiagodnf/perceptron

A simple classifier for data learning and classification in Java and Javascript
https://github.com/thiagodnf/perceptron

ai classifier java java-8 javascript learning-algorithm mlp perceptron

Last synced: about 2 months ago
JSON representation

A simple classifier for data learning and classification in Java and Javascript

Awesome Lists containing this project

README

        

A simple classifier for data learning and classification in Java and Javascript

## What is a perceptron?

The perceptron is an algorithm for supervised learning of binary classifiers (functions that can decide whether an input, represented by a vector of numbers, belongs to some specific class or not)

## Example

Consider we have two classes circles and squares as the following image:

The colorful squares and circles are already classified. However, the gray squares and circles dont. Running the perceptron the output for the classification of these points are:

Output:

```
Found SQUARE and Point [1.0, 1.0] is SQUARE
Found SQUARE and Point [6.0, 8.0] is SQUARE
Found SQUARE and Point [12.0, 5.0] is SQUARE
Found SQUARE and Point [14.0, 1.0] is SQUARE
Found SQUARE and Point [6.0, 6.0] is SQUARE
Found CIRCLE and Point [10.0, 8.0] is CIRCLE
Found CIRCLE and Point [15.0, 6.0] is CIRCLE
Found CIRCLE and Point [21.0, 2.0] is CIRCLE
Found CIRCLE and Point [23.0, 12.0] is CIRCLE
Found CIRCLE and Point [8.0, 12.0] is CIRCLE
```

## Training Size

You have the following options as training size:

- Max Iterations Learning
- User-Specified Threshold Learning

## Where is the javascript version?

Access the "docs" folder or https://thiagodnf.github.io/perceptron/ for visualizing