org.encog.neural.art
public class ART1 extends ART implements MLResettable, MLClassification
PROPERTY_A1, PROPERTY_B1, PROPERTY_C1, PROPERTY_D1, PROPERTY_L, PROPERTY_NO_WINNER, PROPERTY_VIGILANCE
Constructor and Description |
---|
ART1()
Default constructor, used mainly for persistence.
|
ART1(int theF1Count,
int theF2Count)
Construct the ART1 network.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustWeights()
Adjust the weights for the pattern just presented.
|
int |
classify(MLData input)
Classify the input data to a class number.
|
void |
compute(BiPolarNeuralData input,
BiPolarNeuralData output)
Compute the output from the ART1 network.
|
MLData |
compute(MLData input)
Compute the output for the BasicNetwork class.
|
double |
getA1() |
double |
getB1() |
double |
getC1() |
double |
getD1() |
int |
getF1Count() |
int |
getF2Count() |
int |
getInputCount() |
double |
getL() |
int |
getNoWinner() |
int |
getOutputCount() |
double |
getVigilance() |
Matrix |
getWeightsF1toF2() |
Matrix |
getWeightsF2toF1() |
int |
getWinner() |
boolean |
hasWinner() |
double |
magnitude(BiPolarNeuralData input)
Get the magnitude of the specified input.
|
void |
reset()
Reset the weight matrix back to starting values.
|
void |
reset(int seed)
Reset with a specic seed.
|
void |
setA1(double theA1)
Set the A1 parameter.
|
void |
setB1(double theB1)
Set the B1 parameter.
|
void |
setC1(double theC1)
Set the C1 parameter.
|
void |
setD1(double theD1)
Set the D1 parameter.
|
void |
setF1Count(int i)
Set the F1 count.
|
void |
setF2Count(int i)
Set the F2 count.
|
void |
setL(double theL)
Set the L parameter.
|
void |
setNoWinner(int i)
Set the i parameter.
|
void |
setVigilance(double theVigilance)
Set the vigilance.
|
void |
setWeightsF1toF2(Matrix matrix)
Set the f1 to f2 matrix.
|
void |
setWeightsF2toF1(Matrix matrix)
Set the f2 to f1 matrix.
|
updateProperties
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty
public ART1()
public ART1(int theF1Count, int theF2Count)
theF1Count
- The neuron count for the f1 layer.theF2Count
- The neuron count for the f2 layer.public void adjustWeights()
public int classify(MLData input)
classify
in interface MLClassification
input
- The input data.public void compute(BiPolarNeuralData input, BiPolarNeuralData output)
input
- The input to the network.output
- The output from the network.public MLData compute(MLData input)
input
- The input to the network.public double getA1()
public double getB1()
public double getC1()
public double getD1()
public int getF1Count()
public int getF2Count()
public int getInputCount()
getInputCount
in interface MLInput
public double getL()
public int getNoWinner()
public int getOutputCount()
getOutputCount
in interface MLOutput
public double getVigilance()
public Matrix getWeightsF1toF2()
public Matrix getWeightsF2toF1()
public int getWinner()
public boolean hasWinner()
public double magnitude(BiPolarNeuralData input)
input
- The input to calculate the magnitude for.public void reset()
reset
in interface MLResettable
public void reset(int seed)
reset
in interface MLResettable
seed
- The seed to reset with.public void setA1(double theA1)
theA1
- The new value.public void setB1(double theB1)
theB1
- The new value.public void setC1(double theC1)
theC1
- The new value.public void setD1(double theD1)
theD1
- The new value.public void setF1Count(int i)
i
- The count.public void setF2Count(int i)
i
- The count.public void setL(double theL)
theL
- The new value.public void setNoWinner(int i)
i
- The new value.public void setVigilance(double theVigilance)
theVigilance
- The new value.public void setWeightsF1toF2(Matrix matrix)
matrix
- The new matrix.public void setWeightsF2toF1(Matrix matrix)
matrix
- The new matrix.Copyright © 2014. All Rights Reserved.