|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.common.BPNet
Field Summary | |
protected int |
BLAT
variables for RT. |
protected int |
BLDT
variables for RT. |
protected int |
BLPT
variables for RT. |
protected int |
BLRT
variables for RT. |
protected boolean |
debug
|
protected double[] |
DesiredOutput
the desired output. |
protected double[] |
Errors
the errors of output and hidden. |
protected double |
Eta
learning rate. |
protected Global |
global
global settings. |
protected double[] |
Hidden
the input, hidden and output. |
protected double[] |
HiddenDeriv
the derivative of output and hidden. |
protected double[] |
HiddenErrors
the errors of output and hidden. |
protected double[] |
HiddenMomentum
the momentum for hidden and output. |
protected double[] |
HiddenThresholds
the thresholds of output and hidden. |
protected double[][] |
HiddenToOutputMomentum
the momentums. |
protected double[][] |
HiddenToOutputWeights
the weights. |
protected double |
HINITTHRESHOLD
|
protected double |
HINITWEIGHT
|
protected double[][] |
HtoOWeights
|
protected double[] |
Input
the input, hidden and output. |
protected short[] |
inputDVs
variables for information of dimensional values. |
protected double[][] |
InputToHiddenMomentum
the momentums. |
protected double[][] |
InputToHiddenWeights
the weights. |
protected double[][] |
ItoHWeights
|
protected double |
LINITTHRESHOLD
|
protected double |
LINITWEIGHT
|
protected double |
Momentum
momentum. |
protected int |
nHidden
the numbers of units in the layer of input, hidden and output. |
protected int |
nInput
the numbers of units in the layer of input, hidden and output. |
protected double |
NM
variables for success rate. |
protected int |
nOutput
the numbers of units in the layer of input, hidden and output. |
protected double[] |
Output
the input, hidden and output. |
protected double[] |
OutputDeriv
the derivative of output and hidden. |
protected short[] |
outputDVs
variables for information of dimensional values. |
protected double[] |
OutputMomentum
the momentum for hidden and output. |
protected short[] |
outputOffsets
the start index of each action's dim in net output. |
protected double[] |
OutputThresholds
the thresholds of output and hidden. |
protected double |
PM
variables for success rate. |
protected double |
RZero
tolerance of error...sorta |
protected double |
SUCC_C3
parameters for success rate. |
protected double |
SUCC_C4
parameters for success rate. |
protected double |
succRate
variables for success rate. |
protected double |
sumSqErrors
|
Constructor Summary | |
BPNet(int inputNum,
int netIdx,
Global global,
int netType)
new constructor. |
|
BPNet(int numInput,
int numHidden,
int numOutput)
|
Method Summary | |
void |
backwardPass()
update all of the weights inside the network triggered by the difference between desired output and the actual output. |
void |
calcRT(int BLAT)
calculate the response time. |
protected void |
computeErrors()
computes the errors of output layer. |
protected void |
computeHiddenActivation()
calculates the hidden derivative. |
protected void |
computeHiddenErrors()
computes the errors of hidden layer. |
protected void |
computeOutputActivation()
calculates the output derivative. |
void |
forwardPass()
calculate the actual output given current input. |
void |
getInput(double[] fillMe)
returns current input. |
int |
getnHidden()
returns the nubmer of hidden units. |
int |
getnInput()
returns the nubmer of input units. |
double |
getNM()
get the number of negative match. |
int |
getnOutput()
returns the nubmer of output units. |
double[] |
getOutput()
returns current output. |
void |
getOutput(double[] out)
returns current output. |
void |
getOutput(double[] fillMe,
int start,
int length)
Returns a part of current output. |
double |
getOutput(int idx)
returns a particular output. |
double |
getOutput(int dimIdx,
int offset)
returns a particular output. |
double |
getPM()
get the number of positive match. |
int |
getResponseTime()
get the response time. |
double |
getSuccRate()
get the success rate. |
double |
getSumSqErrors()
|
protected void |
modifyHiddenToOutput()
modifies the weights of hidden to output layer |
protected void |
modifyInputToHidden()
modifies the weights of input to hidden layer |
void |
reinitWeights()
reinitializes the weights. |
void |
resetMatches()
resets the matches. |
void |
restoreInitWeights()
restores the weights. |
void |
setDesiredOutput(double[] dOutputs)
set the desired output. |
void |
setDesiredOutput(Feature[] output)
set the desired output with an array of desired features. |
void |
setDesiredOutput(int index,
double value)
set one desired element in the output. |
void |
setDesiredOutput(short[] action)
set the desired output with an array of desired acions. |
void |
setInput(double[] newInputs)
set current input. |
void |
setInput(int[] newInputs)
Sets current input. |
void |
setInput(int index,
double value)
set particular element in the input. |
void |
setLearningRate(double value)
sets the learning rate. |
void |
setMomentum(double value)
sets the momentum. |
void |
updateMatches(boolean flag)
updates the matches. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Global global
protected int nInput
protected int nHidden
protected int nOutput
protected double[] Input
protected double[] Output
protected double[] Hidden
protected double[] OutputMomentum
protected double[] HiddenMomentum
protected double[] OutputThresholds
protected double[] HiddenThresholds
protected double[] OutputDeriv
protected double[] HiddenDeriv
protected double[] Errors
protected double[] HiddenErrors
protected double[] DesiredOutput
protected double[][] InputToHiddenWeights
protected double[][] HiddenToOutputWeights
protected double[][] ItoHWeights
protected double[][] HtoOWeights
protected double[][] InputToHiddenMomentum
protected double[][] HiddenToOutputMomentum
protected double HINITWEIGHT
protected double LINITWEIGHT
protected double HINITTHRESHOLD
protected double LINITTHRESHOLD
protected double Momentum
protected double Eta
protected double RZero
protected boolean debug
protected double sumSqErrors
protected int BLRT
protected int BLPT
protected int BLDT
protected int BLAT
protected double PM
protected double NM
protected double succRate
protected double SUCC_C3
protected double SUCC_C4
protected short[] inputDVs
protected short[] outputDVs
protected short[] outputOffsets
Constructor Detail |
public BPNet(int numInput, int numHidden, int numOutput)
public BPNet(int inputNum, int netIdx, Global global, int netType)
inputNum
- number of input units.netIdx
- net index.global
- the global settings.netType
- net type.Method Detail |
public void reinitWeights()
public void restoreInitWeights()
public int getnInput()
public int getnHidden()
public int getnOutput()
public void setLearningRate(double value)
value
- the value to set.public void setMomentum(double value)
value
- the value to set.public void getInput(double[] fillMe)
fillMe
- the array to store current input.public double[] getOutput()
public void getOutput(double[] out)
out
- the array to store current output.public double getOutput(int idx)
idx
- the index in the output array.
public double getOutput(int dimIdx, int offset)
dimIdx
- the index on a dimension in the output.offset
- the offset inside the dimension.
public void getOutput(double[] fillMe, int start, int length)
public void setInput(int[] newInputs)
public void setInput(double[] newInputs)
public void setInput(int index, double value)
public void setDesiredOutput(double[] dOutputs)
public void setDesiredOutput(int index, double value)
public void setDesiredOutput(short[] action)
public void setDesiredOutput(Feature[] output)
public double getSumSqErrors()
public double getPM()
public double getNM()
public double getSuccRate()
public int getResponseTime()
public void resetMatches()
public void updateMatches(boolean flag)
public void forwardPass()
public void backwardPass()
public void calcRT(int BLAT)
protected void computeHiddenActivation()
protected void computeOutputActivation()
protected void computeErrors()
protected void computeHiddenErrors()
protected void modifyHiddenToOutput()
protected void modifyInputToHidden()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |