C# Class Encog.Normalize.Segregate.Index.IndexSampleSegregator

An index segregator is used to segregate the data according to its index. Nothing about the data is actually compared. This makes the index range segregator very useful for breaking the data into training and validation sets. For example, you could very easily determine that 70% of the data is for training, and 30% for validation. This segregator takes a starting and ending index, as well as a smple size. Everything that is between these two indexes will be used. The sample repeats over and over. For example, if you choose a sample size of 10, and a beginning index of 0 and an ending index of 5, you would get half of the first 10 element, then half of the next ten, and so on.
Inheritance: IndexSegregator
ファイルを表示 Open project: encog/encog-silverlight-core

Public Methods

Method Description
IndexSampleSegregator ( ) : System

The default constructor, for reflection.

IndexSampleSegregator ( int startingIndex, int endingIndex, int sampleSize ) : System

Construct an index sample segregator.

ShouldInclude ( ) : bool

Should this row be included.

Method Details

IndexSampleSegregator() public method

The default constructor, for reflection.
public IndexSampleSegregator ( ) : System
return System

IndexSampleSegregator() public method

Construct an index sample segregator.
public IndexSampleSegregator ( int startingIndex, int endingIndex, int sampleSize ) : System
startingIndex int The starting index.
endingIndex int The ending index.
sampleSize int The sample size.
return System

ShouldInclude() public method

Should this row be included.
public ShouldInclude ( ) : bool
return bool