org.encog.ml.data.buffer.codec
public class NeuralDataSetCODEC extends Object implements DataSetCODEC
| Constructor and Description |
|---|
NeuralDataSetCODEC(MLDataSet theDataset)
Construct a CODEC.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any open files.
|
int |
getIdealSize() |
int |
getInputSize() |
void |
prepareRead()
Prepare to read from an external data source.
|
void |
prepareWrite(int recordCount,
int theInputSize,
int theIdealSize)
Prepare to write to an external data destination.
|
boolean |
read(double[] input,
double[] ideal,
double[] significance)
Read one record of data from an external source.
|
void |
write(double[] input,
double[] ideal,
double significance)
Write one record of data to an external destination.
|
public NeuralDataSetCODEC(MLDataSet theDataset)
theDataset - The dataset to use.public int getInputSize()
getInputSize in interface DataSetCODECpublic int getIdealSize()
getIdealSize in interface DataSetCODECpublic boolean read(double[] input,
double[] ideal,
double[] significance)
read in interface DataSetCODECinput - The input data array.ideal - The ideal data array.significance - The significance. The first element will be modified
to hold the significance.public void write(double[] input,
double[] ideal,
double significance)
write in interface DataSetCODECinput - The input data array.ideal - The ideal data array.public void prepareWrite(int recordCount,
int theInputSize,
int theIdealSize)
prepareWrite in interface DataSetCODECrecordCount - The total record count, that will be written.theInputSize - The input size.theIdealSize - The ideal size.public void prepareRead()
prepareRead in interface DataSetCODECpublic void close()
close in interface DataSetCODECCopyright © 2014. All Rights Reserved.