org.neuroph.contrib.autotrain
Class AutoTrainer
- java.lang.Object
-
- org.neuroph.contrib.autotrain.AutoTrainer
-
public class AutoTrainer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description AutoTrainer()AutoTrainer(double maxError, int maxIterations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetMaxIterations()java.util.List<TrainingResult>getResults()Get results.TransferFunctionTypegetTransferFunction()AutoTrainerrepeat(int times)Repeat neural network with same parameters specified number of times and create statistic.AutoTrainersetHiddenNeurons(int minHiddenNeurons, int maxHiddenNeurons)Set range for hidden neurons of neural network.AutoTrainersetHiddenNeurons(int minHiddenNeurons, int maxHiddenNeurons, int step)Set range for hidden neurons of neural network.AutoTrainersetHiddenNeurons(Range range)Set range for hidden neurons of neural network.AutoTrainersetHiddenNeurons(Range range, int step)Set range for hidden neurons of neural network.AutoTrainersetLearningRate(double minLearningRate, double maxLearningRate)Set range for learning rate of neural network.AutoTrainersetLearningRate(double minLearningRate, double maxLearningRate, double step)Set range for learning rate of neural network.AutoTrainersetLearningRate(Range range)Set range for learning rate of neural network.AutoTrainersetLearningRate(Range range, double step)Set range for learning rate of neural network.AutoTrainersetMaxError(double maxErrorMin, double maxErrorMax)Set range for maximum error of neural network.AutoTrainersetMaxError(double maxErrorMin, double maxErrorMax, double step)Set range for maximum error of neural network.AutoTrainersetMaxError(Range range)Set range for maximum error of neural network.AutoTrainersetMaxError(Range range, double step)Set range for maximum error of neural network.AutoTrainersetMaxIterations(int maxIterations)voidsetMaxMomentum(double maxMomentum)AutoTrainersetTrainTestSplit(int trainingPrecent)Set percentage of training set (in percents).AutoTrainersetTransferFunction(TransferFunctionType transferFunction)voidtrain(DataSet dataSet)You can get results calling getResults() method.
-
-
-
Constructor Detail
-
AutoTrainer
public AutoTrainer()
-
AutoTrainer
public AutoTrainer(double maxError, int maxIterations)
-
-
Method Detail
-
getResults
public java.util.List<TrainingResult> getResults()
Get results.- Returns:
- List of TrainingResult. If nothing was trained, method returns empty ArrayList().
-
setHiddenNeurons
public AutoTrainer setHiddenNeurons(int minHiddenNeurons, int maxHiddenNeurons, int step)
Set range for hidden neurons of neural network. Auto trainer is looping through that range with increment equals to step.- Parameters:
range- given for hidden neurons
-
setHiddenNeurons
public AutoTrainer setHiddenNeurons(int minHiddenNeurons, int maxHiddenNeurons)
Set range for hidden neurons of neural network. Auto trainer is looping through that range.- Parameters:
range- given for hidden neurons
-
setHiddenNeurons
public AutoTrainer setHiddenNeurons(Range range, int step)
Set range for hidden neurons of neural network. Auto trainer is looping through that range with increment equals to step.- Parameters:
range- given for hidden neurons
-
setHiddenNeurons
public AutoTrainer setHiddenNeurons(Range range)
Set range for hidden neurons of neural network. Auto trainer is looping through that range.- Parameters:
range- given for hidden neurons
-
setMaxError
public AutoTrainer setMaxError(double maxErrorMin, double maxErrorMax, double step)
Set range for maximum error of neural network. Auto trainer is looping through that range with increment equals to step.- Parameters:
range- given for hidden neurons
-
setMaxError
public AutoTrainer setMaxError(double maxErrorMin, double maxErrorMax)
Set range for maximum error of neural network. Auto trainer is looping through that range.- Parameters:
range- given for hidden neurons
-
setMaxError
public AutoTrainer setMaxError(Range range, double step)
Set range for maximum error of neural network. Auto trainer is looping through that range with increment equals to step.- Parameters:
range- given for hidden neurons
-
setMaxError
public AutoTrainer setMaxError(Range range)
Set range for maximum error of neural network. Auto trainer is looping through that range.- Parameters:
range- given for hidden neurons
-
setLearningRate
public AutoTrainer setLearningRate(double minLearningRate, double maxLearningRate, double step)
Set range for learning rate of neural network. Auto trainer is looping through that range with increment equals to step.- Parameters:
range- given for learning rate
-
setLearningRate
public AutoTrainer setLearningRate(double minLearningRate, double maxLearningRate)
Set range for learning rate of neural network. Auto trainer is looping through that range.- Parameters:
range- given for learning rate
-
setLearningRate
public AutoTrainer setLearningRate(Range range, double step)
Set range for learning rate of neural network. Auto trainer is looping through that range with increment equals to step.- Parameters:
range- given for learning rate
-
setLearningRate
public AutoTrainer setLearningRate(Range range)
Set range for learning rate of neural network. Auto trainer is looping through that range.- Parameters:
range- given for learning rate
-
getMaxIterations
public int getMaxIterations()
-
setMaxIterations
public AutoTrainer setMaxIterations(int maxIterations)
-
getTransferFunction
public TransferFunctionType getTransferFunction()
-
setTransferFunction
public AutoTrainer setTransferFunction(TransferFunctionType transferFunction)
-
setMaxMomentum
public void setMaxMomentum(double maxMomentum)
- Parameters:
maxMomentum-
-
repeat
public AutoTrainer repeat(int times)
Repeat neural network with same parameters specified number of times and create statistic.- Parameters:
times- to repeat network
-
setTrainTestSplit
public AutoTrainer setTrainTestSplit(int trainingPrecent)
Set percentage of training set (in percents).- Parameters:
trainingPrecent- new value of splitPercentage
-
train
public void train(DataSet dataSet)
You can get results calling getResults() method.- Parameters:
neuralNetwork- type of neural netdataSet-
-
-
DMelt 3.0 © DataMelt by jWork.ORG