yawn.optim.genetic
Class GeneticParameterFitter

java.lang.Object
  extended by yawn.nn.NeuralNetwork
      extended by yawn.optim.ParamerFitter
          extended by yawn.optim.genetic.GeneticParameterFitter
All Implemented Interfaces:
java.io.Serializable

public class GeneticParameterFitter
extends ParamerFitter

This is yawn.optim.GeneticParameterFitter, part of the yawn project.
$Id: GeneticParameterFitter.java,v 1.1 2005/04/04 15:56:28 supermarti Exp $

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

Field Summary
protected  NeuralNetwork fittedModel
           
protected  int maxGenerations
           
protected  NeuralNetworkConfig modeltoBeFittedConfig
           
protected  int populationSize
           
protected  boolean preserveFittestIndividual
           
 
Constructor Summary
GeneticParameterFitter()
           
 
Method Summary
 NeuralNetwork getFittedModel()
           
 int getInputSize()
           
 int getMaxGenerations()
           
 NeuralNetworkConfig getModeltoBeFittedConfig()
           
 java.lang.String getNeuralNetworkName()
          Returns a human readable
 int getOutputSize()
           
 int getPopulationSize()
           
 boolean isPreserveFittestIndividual()
           
 void oneLearningStep(Pattern input, Pattern output)
          Performs one learning iteration.
 Pattern predict(Pattern input)
          Computes a network prediction
 void setFittedModel(NeuralNetwork fittedModel)
           
 void setMaxGenerations(int maxGenerations)
           
 void setModeltoBeFittedConfig(NeuralNetworkConfig initialModelConfig)
           
 void setPopulationSize(int populationSize)
           
 void setPreserveFittestIndividual(boolean preserveFittestIndividual)
           
 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

fittedModel

protected NeuralNetwork fittedModel

modeltoBeFittedConfig

protected NeuralNetworkConfig modeltoBeFittedConfig

maxGenerations

protected int maxGenerations

populationSize

protected int populationSize

preserveFittestIndividual

protected boolean preserveFittestIndividual
Constructor Detail

GeneticParameterFitter

public GeneticParameterFitter()
Method Detail

getFittedModel

public NeuralNetwork getFittedModel()
Returns:
Returns the fittedModel.

getModeltoBeFittedConfig

public NeuralNetworkConfig getModeltoBeFittedConfig()
Returns:
Returns the modeltoBeFittedConfig.

getInputSize

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

getMaxGenerations

public int getMaxGenerations()
Returns:
Returns the maxGenerations.

getNeuralNetworkName

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

Specified by:
getNeuralNetworkName in class NeuralNetwork
Returns:
The name

getOutputSize

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

getPopulationSize

public int getPopulationSize()
Returns:
Returns the populationSize.

isPreserveFittestIndividual

public boolean isPreserveFittestIndividual()
Returns:
Returns the preserveFittestIndividual.

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.

setFittedModel

public void setFittedModel(NeuralNetwork fittedModel)
Parameters:
fittedModel - The fittedModel to set.

setModeltoBeFittedConfig

public void setModeltoBeFittedConfig(NeuralNetworkConfig initialModelConfig)
Parameters:
modeltoBeFittedConfig - The modeltoBeFittedConfig to set.

setMaxGenerations

public void setMaxGenerations(int maxGenerations)
Parameters:
maxGenerations - The maxGenerations to set.

setPopulationSize

public void setPopulationSize(int populationSize)
Parameters:
populationSize - The populationSize to set.

setPreserveFittestIndividual

public void setPreserveFittestIndividual(boolean preserveFittestIndividual)
Parameters:
preserveFittestIndividual - The preserveFittestIndividual to set.

setup

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

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.

yieldConfiguration

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


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