|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.BasicML
org.encog.neural.rbf.RBFNetwork
public class RBFNetwork
RBF neural network.
Constructor Summary | |
---|---|
RBFNetwork()
Construct RBF network. |
|
RBFNetwork(int inputCount,
int hiddenCount,
int outputCount,
RBFEnum t)
Construct RBF network. |
|
RBFNetwork(int inputCount,
int outputCount,
RadialBasisFunction[] rbf)
Construct RBF network. |
Method Summary | |
---|---|
double |
calculateError(MLDataSet data)
Calculate the error for this neural network. |
MLData |
compute(MLData input)
Compute regression. |
void |
decodeFromArray(double[] encoded)
Decode an array to this object. |
int |
encodedArrayLength()
|
void |
encodeToArray(double[] encoded)
Encode the object to the specified array. |
FlatNetwork |
getFlat()
|
int |
getInputCount()
|
int |
getOutputCount()
|
RadialBasisFunction[] |
getRBF()
Get the RBF's. |
void |
randomizeRBFCentersAndWidths(double min,
double max,
RBFEnum t)
Set the RBF components to random values. |
void |
reset()
Reset the weights. |
void |
reset(int seed)
Reset the weights with a seed. |
void |
setRBF(RadialBasisFunction[] rbf)
Set the RBF's. |
void |
setRBFCentersAndWidths(double[][] centers,
double[] widths,
RBFEnum t)
Array containing center position. |
void |
setRBFCentersAndWidthsEqualSpacing(double minPosition,
double maxPosition,
RBFEnum t,
double volumeNeuronRBFWidth,
boolean useWideEdgeRBFs)
Equally spaces all hidden neurons within the n dimensional variable space. |
void |
setRBFFunction(int index,
RBFEnum t,
double[] centers,
double width)
Set an RBF function. |
void |
updateProperties()
Update any objeccts when a property changes. |
Methods inherited from class org.encog.ml.BasicML |
---|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RBFNetwork()
public RBFNetwork(int inputCount, int hiddenCount, int outputCount, RBFEnum t)
inputCount
- The input count.hiddenCount
- The hidden count.outputCount
- The output count.t
- The RBF type.public RBFNetwork(int inputCount, int outputCount, RadialBasisFunction[] rbf)
inputCount
- The input count.outputCount
- The output count.rbf
- The RBF type.Method Detail |
---|
public double calculateError(MLDataSet data)
calculateError
in interface MLError
data
- The training set.
public MLData compute(MLData input)
compute
in interface MLRegression
input
- The input data.
public FlatNetwork getFlat()
getFlat
in interface ContainsFlat
public int getInputCount()
getInputCount
in interface MLInput
public int getOutputCount()
getOutputCount
in interface MLOutput
public RadialBasisFunction[] getRBF()
public void randomizeRBFCentersAndWidths(double min, double max, RBFEnum t)
min
- Minimum random value.max
- Max random value.t
- The type of RBF to use.public void setRBF(RadialBasisFunction[] rbf)
rbf
- The RBF's.public void setRBFCentersAndWidths(double[][] centers, double[] widths, RBFEnum t)
centers
- The centers.widths
- Array containing widths. Row n contains widths for neuron n.
Row n contains x elements for x number of dimensions.t
- The RBF Function to use for this layer.public void setRBFCentersAndWidthsEqualSpacing(double minPosition, double maxPosition, RBFEnum t, double volumeNeuronRBFWidth, boolean useWideEdgeRBFs)
minPosition
- The minimum position neurons should be centered. Typically 0.maxPosition
- The maximum position neurons should be centered. Typically 1volumeNeuronRBFWidth
- The neuron width of neurons within the mesh.useWideEdgeRBFs
- Enables wider RBF's around the boundary of the neuron mesh.public void setRBFFunction(int index, RBFEnum t, double[] centers, double width)
index
- The index to set.t
- The function type.centers
- The centers.width
- The width.public void updateProperties()
updateProperties
in interface MLProperties
updateProperties
in class BasicML
public void reset()
reset
in interface MLResettable
public void reset(int seed)
reset
in interface MLResettable
seed
- The seed value.public int encodedArrayLength()
encodedArrayLength
in interface MLEncodable
public void encodeToArray(double[] encoded)
encodeToArray
in interface MLEncodable
encoded
- The array.public void decodeFromArray(double[] encoded)
decodeFromArray
in interface MLEncodable
encoded
- The encoded array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |