|
||||||||||
| 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. |
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 |
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 final double calculateError(MLDataSet data)
calculateError in interface MLErrordata - The training set.
public final MLData compute(MLData input)
compute in interface MLRegressioninput - The input data.
public final FlatNetwork getFlat()
getFlat in interface ContainsFlatpublic final int getInputCount()
getInputCount in interface MLInputpublic final int getOutputCount()
getOutputCount in interface MLOutputpublic final RadialBasisFunction[] getRBF()
public final void randomizeRBFCentersAndWidths(double min,
double max,
RBFEnum t)
min - Minimum random value.max - Max random value.t - The type of RBF to use.public final void setRBF(RadialBasisFunction[] rbf)
rbf - The RBF's.
public final 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 final 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 final 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 BasicML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||