aima.learning.neural
Class Perceptron

java.lang.Object
  extended by aima.learning.neural.Perceptron
All Implemented Interfaces:
FunctionApproximator

public class Perceptron
extends java.lang.Object
implements FunctionApproximator


Constructor Summary
Perceptron(int numberOfNeurons, int numberOfInputs)
           
 
Method Summary
 Vector predict(NNExample nne)
           
 void processError(Vector error)
           
 Vector processInput(Vector input)
           
 int[] testOnDataSet(NNDataSet nnds)
           
 void trainOn(NNDataSet innds, int numberofEpochs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Perceptron

public Perceptron(int numberOfNeurons,
                  int numberOfInputs)
Method Detail

processInput

public Vector processInput(Vector input)
Specified by:
processInput in interface FunctionApproximator

processError

public void processError(Vector error)
Specified by:
processError in interface FunctionApproximator

trainOn

public void trainOn(NNDataSet innds,
                    int numberofEpochs)

predict

public Vector predict(NNExample nne)

testOnDataSet

public int[] testOnDataSet(NNDataSet nnds)