yawn.optim.genetic
Class GeneticParameterFitter
java.lang.Object
yawn.nn.NeuralNetwork
yawn.optim.ParamerFitter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fittedModel
protected NeuralNetwork fittedModel
modeltoBeFittedConfig
protected NeuralNetworkConfig modeltoBeFittedConfig
maxGenerations
protected int maxGenerations
populationSize
protected int populationSize
preserveFittestIndividual
protected boolean preserveFittestIndividual
GeneticParameterFitter
public GeneticParameterFitter()
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.