public class LMSOffline extends Trainer
Modifier and Type | Class and Description |
---|---|
static class |
LMSOffline.SolutionType
Solution methods for offline LMS.
|
Trainer.DataNotInitializedException
Constructor and Description |
---|
LMSOffline(Trainable network)
Construct the LMSOOffline object, with a trainable network the Synapse
group where the new synapses will be placed.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Apply the algorithm.
|
double |
getAlpha() |
Randomizer |
getNoiseGen() |
ComboBoxWrapper |
getSolutionType()
Returns the current solution type inside a comboboxwrapper.
|
boolean |
isNoiseAdded() |
boolean |
isRidgeRegression() |
void |
moorePenroseSolution(Trainable network)
Moore penrose.
|
void |
setAlpha(double alpha) |
void |
setNoiseAdded(boolean noiseAdded) |
void |
setRidgeRegression(boolean ridgeRegression) |
void |
setSolutionType(ComboBoxWrapper solutionType)
Set the current parse style.
|
void |
setSolutionType(LMSOffline.SolutionType solutionType)
Set solution type.
|
void |
weinerHopfSolution(Trainable network)
Implements the Wiener-Hopf solution to LMS linear regression.
|
addListener, fireProgressUpdate, fireTrainingBegin, fireTrainingEnd, getListeners, getTrainable, getTrainableNetwork, removeListener, revalidateSynapseGroups
public LMSOffline(Trainable network)
network
- the network to trainpublic void apply() throws Trainer.DataNotInitializedException
Trainer
apply
in class Trainer
Trainer.DataNotInitializedException
- when input or target data have not been set.public void weinerHopfSolution(Trainable network)
network
- the trainable network being trainedpublic void moorePenroseSolution(Trainable network)
network
- the trainable network being trainedpublic void setSolutionType(LMSOffline.SolutionType solutionType)
solutionType
- the solutionType to setpublic ComboBoxWrapper getSolutionType()
public void setSolutionType(ComboBoxWrapper solutionType)
solutionType
- the current solution.public boolean isRidgeRegression()
public void setRidgeRegression(boolean ridgeRegression)
public double getAlpha()
public void setAlpha(double alpha)
public boolean isNoiseAdded()
public void setNoiseAdded(boolean noiseAdded)
public Randomizer getNoiseGen()