|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Neuro.Nnet
SciLib.Neuro.RbfNet
public class RbfNet
This class defines A Radial Basis Function Network.
| Field Summary | |
|---|---|
integerVector[] |
c
contains K-cluster indexes |
protected matrix |
G
|
protected matrix |
G0
|
static int |
GENERALIZATIONRBFNW
|
static int |
INTERPOLATIONRBFNW
|
protected double |
lambda
|
static int |
RADIALBFNW
|
protected double |
radius
|
matrix |
t
The set of centers |
protected int |
type
|
| Fields inherited from class SciLib.Neuro.Nnet |
|---|
averageError, DesiredOutputMatrix, errorThreshold, g, hidden, hiddenSize, inSize, learningRate, momentum, numberOfHiddenLayers, NumberOfTestPatterns, NumberOfTrainingPatterns, output, outSize, testingData, testingDesiredOutput, trainingData, trainingDesiredOutput |
| Constructor Summary | |
|---|---|
RbfNet()
Make a default Radial basis function network |
|
RbfNet(int is,
int os,
int hs,
int type)
Make a Radial basis function network with specific size and type |
|
RbfNet(int is,
int os,
int hs,
int type,
Activation phi)
Make a Radial basis function network with specific size, type and activation function |
|
| Method Summary | |
|---|---|
vector |
approximate(Function f,
vector x)
|
double |
classify(int type,
integerVector result)
classify the data from a test file |
void |
computeOutput(vector x)
Compute the output from an input vector x |
double |
computePhiAt(vector x,
int i)
Compute phi(x_i) |
double |
computeRadius()
Compute the radius = M/d^2 |
void |
generateCenters(int method,
int[] centers)
generate centers for a radial basis function network |
void |
generateG0()
Generate the matrix G0 |
void |
generateGreenMatrix()
Generate the Green matrix G |
void |
generateKCenters(int[] centers)
Generate k fixed centers |
void |
generateRandomlyCenters()
Genrate k centers randomly |
matrix |
getGreenMatrix()
get Green matrix G |
java.lang.String |
getType()
Get the radial basis function network type |
void |
initialize(double radius,
double lambda,
int type)
initialize a radial basis function network |
void |
initialize(double radius,
double lambda,
int type,
Activation phi)
initialize a radial basis function network |
void |
interpolation(double lambda)
Interpolation method |
vector |
makeTrainingDesiredOutputVector(int i)
make a current training desired output vector |
void |
training(int trainingType,
int[] c)
Training the network |
void |
training(int trainingType,
int[] c,
double lambda)
Training the network with a generalization parameter lambda |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RADIALBFNW
public static final int INTERPOLATIONRBFNW
public static final int GENERALIZATIONRBFNW
protected matrix G
protected matrix G0
protected double lambda
protected double radius
protected int type
public matrix t
public integerVector[] c
| Constructor Detail |
|---|
public RbfNet()
public RbfNet(int is,
int os,
int hs,
int type)
is - An integer value, the input sizeos - An integer value, the output sizehs - An integer value, the size of the hidden layertype - An integer value, the type of radial basis function network
public RbfNet(int is,
int os,
int hs,
int type,
Activation phi)
is - An integer value, the input sizeos - An integer value, the output sizehs - An integer value, the size of the hidden layertype - An integer value, the type of radial basis function networkphi - An Activation object| Method Detail |
|---|
public matrix getGreenMatrix()
public java.lang.String getType()
public void initialize(double radius,
double lambda,
int type)
radius - A double valuelambda - A double valuetype - A double value
public void initialize(double radius,
double lambda,
int type,
Activation phi)
radius - A double valuelambda - A double valuetype - A double valuephi - An Activation function
public double computePhiAt(vector x,
int i)
x - A vectori - An integer valuepublic double computeRadius()
public void generateCenters(int method,
int[] centers)
method - 0 for randomly, 1 for k-mean clustering and 0 for fixed centerscenters - An integer array of indexes of fixed centers. It will be null for other methodspublic void generateKCenters(int[] centers)
centers - An integer array of indexes of fixed centers.public void generateRandomlyCenters()
public void generateGreenMatrix()
public void generateG0()
public void computeOutput(vector x)
x - A vectorpublic vector makeTrainingDesiredOutputVector(int i)
public void training(int trainingType,
int[] c)
trainingType - the training method, 0 for randomly, 1 for k-mean clustering and 0 for fixed centersc - An integer array of indexes of fixed centers. It will be null for other methodspublic void interpolation(double lambda)
public void training(int trainingType,
int[] c,
double lambda)
trainingType - the training method, 0 for randomly, 1 for k-mean clustering and 0 for fixed centersc - An integer array of indexes of fixed centers. It will be null for other methodslambda - A double value
public double classify(int type,
integerVector result)
type - An integer value, the classification methodresult - An integerVector contains the classification result
public vector approximate(Function f,
vector x)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||