|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.data.basic.BasicNeuralDataPair
public class BasicNeuralDataPair
A basic implementation of the NeuralDataPair interface. This implementation simply holds and input and ideal NeuralData object. For supervised training both input and ideal should be specified. For unsupervised training the input property should be valid, however the ideal property should contain null.
| Constructor Summary | |
|---|---|
BasicNeuralDataPair(NeuralData input)
Construct the object with only input. |
|
BasicNeuralDataPair(NeuralData input,
NeuralData ideal)
Construct a BasicNeuralDataPair class with the specified input and ideal values. |
|
| Method Summary | |
|---|---|
static NeuralDataPair |
createPair(int inputSize,
int idealSize)
Create a new neural data pair object of the correct size for the neural network that is being trained. |
NeuralData |
getIdeal()
Get the expected results. |
double[] |
getIdealArray()
|
NeuralData |
getInput()
Get the input data. |
double[] |
getInputArray()
|
boolean |
isSupervised()
Determine if this data pair is supervised. |
void |
setIdealArray(double[] data)
Set the ideal data, the desired output. |
void |
setInputArray(double[] data)
Set the input. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicNeuralDataPair(NeuralData input)
input - The input to the neural network.
public BasicNeuralDataPair(NeuralData input,
NeuralData ideal)
input - The input to the neural network.ideal - The expected results from the neural network.| Method Detail |
|---|
public NeuralData getIdeal()
getIdeal in interface NeuralDataPairpublic NeuralData getInput()
getInput in interface NeuralDataPairpublic boolean isSupervised()
isSupervised in interface EngineDataisSupervised in interface NeuralDataPairpublic String toString()
toString in class Object
public static NeuralDataPair createPair(int inputSize,
int idealSize)
inputSize - The size of the input data.idealSize - The size of the ideal data.
public double[] getIdealArray()
getIdealArray in interface EngineDatapublic double[] getInputArray()
getInputArray in interface EngineDatapublic void setIdealArray(double[] data)
EngineData
setIdealArray in interface EngineDatadata - The ideal data.public void setInputArray(double[] data)
EngineData
setInputArray in interface EngineDatadata - The input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||