org.encog.ml.fitting.linear
Class TrainLinearRegression
- java.lang.Object
-
- org.encog.ml.train.BasicTraining
-
- org.encog.ml.fitting.linear.TrainLinearRegression
-
- All Implemented Interfaces:
- MLTrain
public class TrainLinearRegression extends BasicTraining
-
-
Constructor Summary
Constructors Constructor and Description TrainLinearRegression(LinearRegression theMethod, MLDataSet theTraining)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancanContinue()MLMethodgetMethod()Get the current best machine learning method from the training.MLDataSetgetTraining()voiditeration()Perform one iteration of training.TrainingContinuationpause()Pause the training to continue later.voidresume(TrainingContinuation state)Resume training.-
Methods inherited from class org.encog.ml.train.BasicTraining
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, isTrainingDone, iteration, postIteration, preIteration, setError, setIteration, setTraining
-
-
-
-
Constructor Detail
-
TrainLinearRegression
public TrainLinearRegression(LinearRegression theMethod, MLDataSet theTraining)
-
-
Method Detail
-
getTraining
public MLDataSet getTraining()
- Specified by:
getTrainingin interfaceMLTrain- Overrides:
getTrainingin classBasicTraining- Returns:
- the training
-
iteration
public void iteration()
Description copied from interface:MLTrainPerform one iteration of training.
-
canContinue
public boolean canContinue()
- Returns:
- True if the training can be paused, and later continued.
-
pause
public TrainingContinuation pause()
Description copied from interface:MLTrainPause the training to continue later.- Returns:
- A training continuation object.
-
resume
public void resume(TrainingContinuation state)
Description copied from interface:MLTrainResume training.- Parameters:
state- The training continuation object to use to continue.
-
-
DMelt 3.0 © DataMelt by jWork.ORG