|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simnet.interfaces.Network
org.simnet.networks.LMSNetwork
public class LMSNetwork
LMSNetwork implements a least means squared network.
| Field Summary |
|---|
| Fields inherited from class org.simnet.interfaces.Network |
|---|
CONTINUOUS, DISCRETE |
| Constructor Summary | |
|---|---|
LMSNetwork()
Default constructor. |
|
LMSNetwork(int nInputs,
int nOutputs,
Layout layout)
Construct an LMS network with a specified number of input and output layers. |
|
| Method Summary | |
|---|---|
int |
getDefaultInputs()
|
protected LinearNeuron |
getDefaultNeuron()
Return the default neuron, with settings, for LMS nets. |
int |
getDefaultOutputs()
|
int |
getEpochs()
|
double |
getEta()
|
double |
getRMSError()
|
File |
getTrainingINFile()
|
double[][] |
getTrainingInputs()
|
File |
getTrainingOUTFile()
|
double[][] |
getTrainingOutputs()
|
void |
init()
Initialize the network. |
void |
iterate()
Iterate network training. |
void |
setEpochs(int epochs)
|
void |
setEta(double eta)
|
void |
setTrainingINFile(File trainingINFile)
Sets the input training file. |
void |
setTrainingInputs(double[][] trainingInputs)
|
void |
setTrainingOUTFile(File trainingOUTFile)
Sets the output training file. |
void |
setTrainingOutputs(double[][] trainingOutputs)
|
void |
train()
Train the network. |
void |
update()
The core update function of the neural network. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LMSNetwork()
public LMSNetwork(int nInputs,
int nOutputs,
Layout layout)
nInputs - number of input nodesnOutputs - number of output nodeslayout - layout of the new nodes| Method Detail |
|---|
public void init()
Network
init in class NetworkStandardNetworkprotected LinearNeuron getDefaultNeuron()
public void update()
update in class Networkpublic void train()
public void iterate()
public double getRMSError()
public int getEpochs()
public void setEpochs(int epochs)
epochs - The epochs to set.public double getEta()
public void setEta(double eta)
eta - The eta to set.public double[][] getTrainingInputs()
public void setTrainingInputs(double[][] trainingInputs)
trainingInputs - The trainingInputs to set.public double[][] getTrainingOutputs()
public void setTrainingOutputs(double[][] trainingOutputs)
trainingOutputs - The trainingOutputs to set.public int getDefaultInputs()
public int getDefaultOutputs()
public File getTrainingINFile()
public void setTrainingINFile(File trainingINFile)
trainingINFile - File to set input trainingpublic File getTrainingOUTFile()
public void setTrainingOUTFile(File trainingOUTFile)
trainingOUTFile - File to set output training
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||