org.encog.ml.data.cross
Class KFoldCrossvalidation
- java.lang.Object
-
- org.encog.ml.data.cross.KFoldCrossvalidation
-
public class KFoldCrossvalidation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description KFoldCrossvalidation(MatrixMLDataSet theBaseDataset, int theK)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MatrixMLDataSetgetBaseDataset()java.util.List<DataFold>getFolds()intgetK()GenerateRandomgetRnd()voidprocess(boolean shuffle)voidsetRnd(GenerateRandom rnd)
-
-
-
Constructor Detail
-
KFoldCrossvalidation
public KFoldCrossvalidation(MatrixMLDataSet theBaseDataset, int theK)
-
-
Method Detail
-
getRnd
public GenerateRandom getRnd()
- Returns:
- the rnd
-
setRnd
public void setRnd(GenerateRandom rnd)
- Parameters:
rnd- the rnd to set
-
getBaseDataset
public MatrixMLDataSet getBaseDataset()
- Returns:
- the baseDataset
-
getK
public int getK()
- Returns:
- the k
-
getFolds
public java.util.List<DataFold> getFolds()
- Returns:
- the folds
-
process
public void process(boolean shuffle)
-
-
DMelt 3.0 © DataMelt by jWork.ORG