Refactored Perceptron

This commit is contained in:
Niklas Birk
2019-06-27 00:02:21 +02:00
parent 54cfe2dece
commit 05dba5bae5
2 changed files with 12 additions and 9 deletions

View File

@ -6,10 +6,12 @@ import java.util.List;
public class Perceptron
{
private Vector weight;
public void learn(List<Vector> positives, List<Vector> negatives)
{
var iterationCounter = 0;
var weight = this.getInitializationVector(positives, negatives);
this.weight = this.getInitializationVector(positives, negatives);
do
{