org.encog.neural.rbf
public class RBFNetwork extends BasicML implements MLError, MLRegression, ContainsFlat, MLResettable, MLEncodable
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setPropertypublic 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.public double calculateError(MLDataSet data)
calculateError in interface MLErrordata - The training set.public MLData compute(MLData input)
compute in interface MLRegressioninput - The input data.public FlatNetwork getFlat()
getFlat in interface ContainsFlatpublic int getInputCount()
getInputCount in interface MLInputpublic int getOutputCount()
getOutputCount in interface MLOutputpublic 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 MLPropertiesupdateProperties in class BasicMLpublic void reset()
reset in interface MLResettablepublic void reset(int seed)
reset in interface MLResettableseed - The seed value.public int encodedArrayLength()
encodedArrayLength in interface MLEncodablepublic void encodeToArray(double[] encoded)
encodeToArray in interface MLEncodableencoded - The array.public void decodeFromArray(double[] encoded)
decodeFromArray in interface MLEncodableencoded - The encoded array.Copyright © 2014. All Rights Reserved.