|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.engine.data.BasicEngineData
public class BasicEngineData
A basic implementation of the EngineData 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 | |
|---|---|
BasicEngineData(double[] input)
Construct the object with only input. |
|
BasicEngineData(double[] input,
double[] ideal)
Construct a BasicNeuralDataPair class with the specified input and ideal values. |
|
| Method Summary | |
|---|---|
static EngineData |
createPair(int inputSize,
int idealSize)
Create a new neural data pair object of the correct size for the neural network that is being trained. |
double[] |
getIdealArray()
Get the expected results. |
double[] |
getInputArray()
Get the input data. |
boolean |
isSupervised()
Determine if this data pair is supervised. |
void |
setIdealArray(double[] data)
Set the ideal array. |
void |
setInputArray(double[] data)
Set the input array. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicEngineData(double[] input)
input - The input to the neural network.
public BasicEngineData(double[] input,
double[] ideal)
input - The input to the neural network.ideal - The expected results from the neural network.| Method Detail |
|---|
public static EngineData 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 boolean isSupervised()
isSupervised in interface EngineDatapublic void setIdealArray(double[] data)
setIdealArray in interface EngineDatadata - The ideal array.public void setInputArray(double[] data)
setInputArray in interface EngineDatadata - The input array.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||