org.encog.neural.networks.training.cross
Class CrossTraining

java.lang.Object
  extended by org.encog.neural.networks.training.BasicTraining
      extended by org.encog.neural.networks.training.cross.CrossTraining
All Implemented Interfaces:
Train
Direct Known Subclasses:
CrossValidationKFold

public abstract class CrossTraining
extends BasicTraining

Base class for cross training trainers. Must use a folded dataset.


Constructor Summary
CrossTraining(BasicNetwork network, FoldedDataSet training)
          Construct a cross trainer.
 
Method Summary
 FoldedDataSet getFolded()
           
 BasicNetwork getNetwork()
          Get the current best network from the training.
 
Methods inherited from class org.encog.neural.networks.training.BasicTraining
addStrategy, finishTraining, getCloud, getError, getIteration, getStrategies, getTraining, isTrainingDone, iteration, postIteration, preIteration, setCloud, setError, setIteration, setTraining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.encog.neural.networks.training.Train
iteration
 

Constructor Detail

CrossTraining

public CrossTraining(BasicNetwork network,
                     FoldedDataSet training)
Construct a cross trainer.

Parameters:
network - The network.
training - The training data.
Method Detail

getFolded

public FoldedDataSet getFolded()
Returns:
The folded training data.

getNetwork

public BasicNetwork getNetwork()
Description copied from interface: Train
Get the current best network from the training.

Returns:
The network.


Copyright © 2011. All Rights Reserved.