C# 클래스 Encog.Neural.Data.Buffer.CODEC.CSVDataCODEC

A CODEC used to read/write data from/to a CSV data file. There are two constructors provided, one is for reading, the other for writing. Make sure you use the correct one for your intended purpose. This CODEC is typically used with the BinaryDataLoader, to load external data into the Encog binary training format.
상속: IDataSetCODEC
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
CSVDataCODEC ( String file, CSVFormat format ) : System

Constructor to create CSV from binary.

CSVDataCODEC ( String file, CSVFormat format, bool headers, int inputCount, int idealCount ) : 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 ) : bool

Read one record of data from a CSV file.

Write ( double input, double ideal ) : void

Write one record of data to a CSV file.

메소드 상세

CSVDataCODEC() 공개 메소드

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

CSVDataCODEC() 공개 메소드

Create a CODEC to load data from CSV to binary.
public CSVDataCODEC ( String file, CSVFormat format, bool headers, int inputCount, int idealCount ) : 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.
리턴 System

Close() 공개 메소드

public Close ( ) : void
리턴 void

PrepareRead() 공개 메소드

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

PrepareWrite() 공개 메소드

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.
리턴 void

Read() 공개 메소드

Read one record of data from a CSV file.
public Read ( double input, double ideal ) : bool
input double The input data array.
ideal double The ideal data array.
리턴 bool

Write() 공개 메소드

Write one record of data to a CSV file.
public Write ( double input, double ideal ) : void
input double The input data array.
ideal double The ideal data array.
리턴 void