|
||||||||||
| 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.Backprop
public class Backprop
Backprop implements a standard three layer backpropagation network.
| Field Summary |
|---|
| Fields inherited from class org.simnet.interfaces.Network |
|---|
CONTINUOUS, DISCRETE |
| Constructor Summary | |
|---|---|
Backprop()
Default constructor. |
|
Backprop(int inputs,
int hidden,
int outputs,
Layout layout)
Construct a backprop network with a specified number of input, hidden, and output layers. |
|
| Method Summary | |
|---|---|
void |
attachInputsAndOutputs()
Attach training files to SNARLI network. |
void |
batchIterate()
Batch train for one iteration. |
void |
batchTrain()
Forwards to Snarli batchTrain() method. |
protected void |
buildInitialNetwork()
Build the default network. |
void |
buildSnarliNetwork()
Create the Snarli network. |
void |
defaultInit()
Build network and initialize nodes and weights to appropriate values. |
double[] |
getBiases(StandardNetwork net)
Returns bias values. |
protected SigmoidalNeuron |
getDefaultNeuron()
Return the default neuron, with settings, for backprop nets. |
int |
getEpochs()
|
double |
getError()
|
int |
getErrorInterval()
|
double |
getEta()
|
edu.wlu.cs.levy.SNARLI.BPLayer |
getHid()
|
edu.wlu.cs.levy.SNARLI.BPLayer |
getInp()
|
double |
getMu()
|
int |
getNHidden()
|
int |
getNInputs()
|
int |
getNOutputs()
|
edu.wlu.cs.levy.SNARLI.BPLayer |
getOut()
|
File |
getTrainingINFile()
|
double[][] |
getTrainingInputs()
|
File |
getTrainingOUTFile()
|
double[][] |
getTrainingOutputs()
|
void |
iterate()
Iterate network training. |
void |
randomize()
Randomize the network. |
void |
setBiases(StandardNetwork net,
double[] biases)
Set bias values for all neurons in this network. |
void |
setEpochs(int epochs)
|
void |
setError(double error)
|
void |
setErrorInterval(int errorInterval)
|
void |
setEta(double eta)
|
void |
setHid(edu.wlu.cs.levy.SNARLI.BPLayer hid)
|
void |
setInp(edu.wlu.cs.levy.SNARLI.BPLayer inp)
|
void |
setMu(double mu)
|
void |
setNHidden(int nHidden)
|
void |
setNInputs(int nInputs)
|
void |
setNOutputs(int nOutputs)
|
void |
setOut(edu.wlu.cs.levy.SNARLI.BPLayer out)
|
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. |
void |
updateSimbrainNetwork()
Update connections and biases of simbrain network. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Backprop()
public Backprop(int inputs,
int hidden,
int outputs,
Layout layout)
inputs - Number of neurons to be inputshidden - Number of neurons to be hiddenoutputs - Number of neurons to be outputslayout - Defines how the neurons are layed out| Method Detail |
|---|
public void defaultInit()
protected void buildInitialNetwork()
public void buildSnarliNetwork()
protected SigmoidalNeuron getDefaultNeuron()
public void update()
update in class Networkpublic void train()
public void iterate()
public void attachInputsAndOutputs()
public void updateSimbrainNetwork()
public void batchTrain()
batchTrain() method.
public void batchIterate()
public void randomize()
public int getEpochs()
public void setEpochs(int epochs)
epochs - The epochs to set.public double getError()
public void setError(double error)
error - The error to set.public int getErrorInterval()
public void setErrorInterval(int errorInterval)
errorInterval - The errorInterval to set.public double getEta()
public void setEta(double eta)
eta - The eta to set.public edu.wlu.cs.levy.SNARLI.BPLayer getHid()
public void setHid(edu.wlu.cs.levy.SNARLI.BPLayer hid)
hid - The hid to set.public edu.wlu.cs.levy.SNARLI.BPLayer getInp()
public void setInp(edu.wlu.cs.levy.SNARLI.BPLayer inp)
inp - The inp to set.public double getMu()
public void setMu(double mu)
mu - The mu to set.public int getNHidden()
public void setNHidden(int nHidden)
nHidden - The nHidden to set.public int getNInputs()
public void setNInputs(int nInputs)
nInputs - The nInputs to set.public int getNOutputs()
public void setNOutputs(int nOutputs)
nOutputs - The nOutputs to set.public edu.wlu.cs.levy.SNARLI.BPLayer getOut()
public void setOut(edu.wlu.cs.levy.SNARLI.BPLayer out)
out - The out 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 double[] getBiases(StandardNetwork net)
net - Network
public void setBiases(StandardNetwork net,
double[] biases)
biases - Array of new bias valuesnet - Network to get biasespublic 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 | |||||||||