yawn.nn.mlp.smart
Class SmartMultiLayerPerceptron

java.lang.Object
  extended by yawn.nn.NeuralNetwork
      extended by yawn.nn.mlp.smart.SmartMultiLayerPerceptron
All Implemented Interfaces:
java.io.Serializable

public class SmartMultiLayerPerceptron
extends NeuralNetwork

This is yawn.nn.mlp.SmartMultiLayerPerceptron part of the yawn project. $Id: SmartMultiLayerPerceptron.java,v 1.3 2005/04/07 17:28:26 supermarti Exp $

Version:
$Revision: 1.3 $
Author:
Luis Martí (luis dot marti at uc3m dot es)
See Also:
Serialized Form

Field Summary
protected  long currentEpoch
           
protected  long maxEpochs
           
protected  double maxLearningRate
           
protected  MultiLayerPerceptron net
           
protected  double predictionError
           
 
Constructor Summary
SmartMultiLayerPerceptron()
           
 
Method Summary
 int getInputSize()
           
 java.lang.String getNeuralNetworkName()
          Returns a human readable
 int getOutputSize()
           
 void oneLearningStep(Pattern input, Pattern output)
          Performs one learning iteration.
 Pattern predict(Pattern input)
          Computes a network prediction
 void setup(NeuralNetworkConfig config)
           
 void train(InputOutputPattern[] iop)
          Trains the network until the stop criteria is met.
 NeuralNetworkConfig yieldConfiguration()
           
 
Methods inherited from class yawn.nn.NeuralNetwork
getAdapting, getStatisticsFacility, isAdapting, setAdapting, setStatisticsFacility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentEpoch

protected long currentEpoch

maxLearningRate

protected double maxLearningRate

maxEpochs

protected long maxEpochs

predictionError

protected double predictionError

net

protected MultiLayerPerceptron net
Constructor Detail

SmartMultiLayerPerceptron

public SmartMultiLayerPerceptron()
Method Detail

oneLearningStep

public void oneLearningStep(Pattern input,
                            Pattern output)
Description copied from class: NeuralNetwork
Performs one learning iteration.

Specified by:
oneLearningStep in class NeuralNetwork
Parameters:
input - The network input.
output - The desired output.

predict

public Pattern predict(Pattern input)
Description copied from class: NeuralNetwork
Computes a network prediction

Specified by:
predict in class NeuralNetwork
Parameters:
input - The input to propagate.
Returns:
the network output.

train

public void train(InputOutputPattern[] iop)
Description copied from class: NeuralNetwork
Trains the network until the stop criteria is met.

Specified by:
train in class NeuralNetwork
Parameters:
iop - The training set to be learned.

getInputSize

public int getInputSize()
Specified by:
getInputSize in class NeuralNetwork

getOutputSize

public int getOutputSize()
Specified by:
getOutputSize in class NeuralNetwork

setup

public void setup(NeuralNetworkConfig config)
           throws ConfigurationException
Specified by:
setup in class NeuralNetwork
Throws:
ConfigurationException

yieldConfiguration

public NeuralNetworkConfig yieldConfiguration()
Specified by:
yieldConfiguration in class NeuralNetwork

getNeuralNetworkName

public java.lang.String getNeuralNetworkName()
Description copied from class: NeuralNetwork
Returns a human readable

Specified by:
getNeuralNetworkName in class NeuralNetwork
Returns:
The name


Copyright © 2003-2005 GIAA, Universidad Carlos III de Madrid. All Rights Reserved.