Click or drag to resize

KFoldsSubsets Class

Class KFoldsSubsets generates k-fold subsets for cross validation.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreKFoldsSubsets

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class KFoldsSubsets : ICrossValidationSubsets, 
	ICloneable

The KFoldsSubsets type exposes the following members.

Constructors
 NameDescription
Public methodKFoldsSubsets(Int32) Constructs a KFoldsSubsets instance for the given value of k.
Public methodKFoldsSubsets(Int32, QuasiRandomNumberGenerator) Constructs a KFoldsSubsets instance for the given value of k, and the given random number generator.
Top
Properties
 NameDescription
Public propertyK Gets and sets the size of each subset in the partition.
Public propertyNumSubsets Gets the number of subsets generated.
Public propertyRandomNumberGenerator Gets the quasi-random number generator that is used to randomly select the indices for each generated subset. If repeatability in subset generation for a given k is desired, set the seed used in the random number generator to the same value before each run.
Top
Methods
 NameDescription
Public methodClone Creates a deep copy of this KFoldsSubsets.
Public methodGetTestingSubsets(DataFrame, DataFrame) Generates the k-fold subsets to be used for cross validation.
Public methodGetTestingSubsets(DoubleMatrix, DoubleMatrix) Generates the k-fold subsets to be used for cross validation.
Top
Remarks
Specifically, for a given integer, k, the row indices of the input data are partitioned into k subsets. The indices in each subset are chosen randomly.
See Also