|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSetCODEC
A CODEC is used to encode and decode data. The DataSetCODEC is designed to move data to/from the Encog binary training file format, used by BufferedNeuralDataSet. CODECs are provided for such items as CSV files, arrays and many other sources.
| Method Summary | |
|---|---|
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 inputSize,
int idealSize)
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. |
| Method Detail |
|---|
boolean read(double[] input,
double[] ideal,
double[] significance)
input - The input data array.ideal - The ideal data array.significance - The significance. The first element will be modified
to hold the significance.
void write(double[] input,
double[] ideal,
double significance)
input - The input data array.ideal - The ideal data array.
void prepareWrite(int recordCount,
int inputSize,
int idealSize)
recordCount - The total record count, that will be written.inputSize - The input size.idealSize - The ideal size.void prepareRead()
int getInputSize()
int getIdealSize()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||