C# 클래스 Encog.ML.Data.Buffer.BufferedMLDataSet

This class is not memory based, so very long files can be used, without running out of memory. This dataset uses a Encog binary training file as a buffer. When used with a slower access dataset, such as CSV, XML or SQL, where parsing must occur, this dataset can be used to load from the slower dataset and train at much higher speeds. If you are going to create a binary file, by using the add methods, you must call beginLoad to cause Encog to open an output file. Once the data has been loaded, call endLoad. You can also use the BinaryDataLoader class, with a CODEC, to load many other popular external formats. The binary files produced by this class are in the Encog binary training format, and can be used with any Encog platform. Encog binary files are stored using "little endian" numbers.
상속: IMLDataSet
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IMLData data1 ) : void

Add only input data, for an unsupervised dataset.

Add ( IMLData inputData, IMLData idealData ) : void

Add both the input and ideal data.

Add ( IMLDataPair pair ) : void

Add a data pair of both input and ideal data.

BeginLoad ( int inputSize, int idealSize ) : void

Begin loading to the binary file. After calling this method the add methods may be called.

BufferedMLDataSet ( String binaryFile ) : System

Construct a buffered dataset using the specified file.

Close ( ) : void

Close the dataset.

EndLoad ( ) : void

This method should be called once all the data has been loaded. The underlying file will be closed. The binary fill will then be opened for reading.

GetEnumerator ( ) : IEnumerator

Create an enumerator.

GetRecord ( long index, IMLDataPair pair ) : void

Read an individual record.

Load ( IMLDataSet training ) : void

Load the specified training set.

LoadToMemory ( ) : IMLDataSet

Load the binary dataset to memory. Memory access is faster.

Open ( ) : void

Open the binary file for reading.

OpenAdditional ( ) : IMLDataSet

Open an additional training set.

RemoveAdditional ( BufferedMLDataSet child ) : void

Remove an additional dataset that was created.

메소드 상세

Add() 공개 메소드

Add only input data, for an unsupervised dataset.
public Add ( IMLData data1 ) : void
data1 IMLData The data to be added.
리턴 void

Add() 공개 메소드

Add both the input and ideal data.
public Add ( IMLData inputData, IMLData idealData ) : void
inputData IMLData The input data.
idealData IMLData The ideal data.
리턴 void

Add() 공개 메소드

Add a data pair of both input and ideal data.
public Add ( IMLDataPair pair ) : void
pair IMLDataPair The pair to add.
리턴 void

BeginLoad() 공개 메소드

Begin loading to the binary file. After calling this method the add methods may be called.
public BeginLoad ( int inputSize, int idealSize ) : void
inputSize int The input size.
idealSize int The ideal size.
리턴 void

BufferedMLDataSet() 공개 메소드

Construct a buffered dataset using the specified file.
public BufferedMLDataSet ( String binaryFile ) : System
binaryFile String The file to read/write binary data to/from.
리턴 System

Close() 공개 메소드

Close the dataset.
public Close ( ) : void
리턴 void

EndLoad() 공개 메소드

This method should be called once all the data has been loaded. The underlying file will be closed. The binary fill will then be opened for reading.
public EndLoad ( ) : void
리턴 void

GetEnumerator() 공개 메소드

Create an enumerator.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

GetRecord() 공개 메소드

Read an individual record.
public GetRecord ( long index, IMLDataPair pair ) : void
index long The zero-based index. Specify 0 for the first record, 1 for /// the second, and so on.
pair IMLDataPair The data to read.
리턴 void

Load() 공개 메소드

Load the specified training set.
public Load ( IMLDataSet training ) : void
training IMLDataSet The training set to load.
리턴 void

LoadToMemory() 공개 메소드

Load the binary dataset to memory. Memory access is faster.
public LoadToMemory ( ) : IMLDataSet
리턴 IMLDataSet

Open() 공개 메소드

Open the binary file for reading.
public Open ( ) : void
리턴 void

OpenAdditional() 공개 메소드

Open an additional training set.
public OpenAdditional ( ) : IMLDataSet
리턴 IMLDataSet

RemoveAdditional() 공개 메소드

Remove an additional dataset that was created.
public RemoveAdditional ( BufferedMLDataSet child ) : void
child BufferedMLDataSet The additional dataset to remove.
리턴 void