C# Class Encog.ML.Data.Buffer.CODEC.CSVDataCODEC

Inheritance: IDataSetCODEC
ファイルを表示 Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
CSVDataCODEC ( String file, CSVFormat format, bool significance ) : System

Constructor to create CSV from binary.

CSVDataCODEC ( String file, CSVFormat format, bool headers, int inputCount, int idealCount, bool significance ) : System

Create a CODEC to load data from CSV to binary.

Close ( ) : void
PrepareRead ( ) : void

Prepare to read from the CSV file.

PrepareWrite ( int recordCount, int inputSize, int idealSize ) : void

Prepare to write to a CSV file.

Read ( double input, double ideal, double &significance ) : bool
Write ( double input, double ideal, double significance ) : void

Method Details

CSVDataCODEC() public method

Constructor to create CSV from binary.
public CSVDataCODEC ( String file, CSVFormat format, bool significance ) : System
file String The CSV file to create.
format Encog.Util.CSV.CSVFormat The format for that CSV file.
significance bool
return System

CSVDataCODEC() public method

Create a CODEC to load data from CSV to binary.
public CSVDataCODEC ( String file, CSVFormat format, bool headers, int inputCount, int idealCount, bool significance ) : System
file String The CSV file to load.
format Encog.Util.CSV.CSVFormat The format that the CSV file is in.
headers bool True, if there are headers.
inputCount int The number of input columns.
idealCount int The number of ideal columns.
significance bool Is there a signficance column.
return System

Close() public method

public Close ( ) : void
return void

PrepareRead() public method

Prepare to read from the CSV file.
public PrepareRead ( ) : void
return void

PrepareWrite() public method

Prepare to write to a CSV file.
public PrepareWrite ( int recordCount, int inputSize, int idealSize ) : void
recordCount int The total record count, that will be written.
inputSize int The input size.
idealSize int The ideal size.
return void

Read() public method

public Read ( double input, double ideal, double &significance ) : bool
input double
ideal double
significance double
return bool

Write() public method

public Write ( double input, double ideal, double significance ) : void
input double
ideal double
significance double
return void