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
- Host: GitHub
- URL: https://github.com/thiagodnf/perceptron
- Owner: thiagodnf
- License: mit
- Created: 2018-09-24T20:27:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T19:49:08.000Z (over 6 years ago)
- Last Synced: 2025-01-23T15:36:05.712Z (4 months ago)
- Topics: ai, classifier, java, java-8, javascript, learning-algorithm, mlp, perceptron
- Language: Java
- Homepage: https://thiagodnf.github.io/perceptron/
- Size: 313 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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