public class MonteCarloCV extends CrossValidation
CrossValidation.Data, CrossValidation.TrainTestSubsets
random, X, y
Constructor and Description |
---|
MonteCarloCV(CrossValidation.Data data) |
MonteCarloCV(CrossValidation.Data data,
double ratio) |
MonteCarloCV(double[][] samples,
int[] labels) |
MonteCarloCV(double[][] samples,
int[] labels,
double ratio)
Create a new Monte Carlo cross validator.
|
Modifier and Type | Method and Description |
---|---|
double |
getRatio() |
CrossValidation.TrainTestSubsets |
getTrainTestSubset()
Partition the input data into a training and a test set
|
balanceUp, balanceUp, balanceUp, eval, eval, evalModels, evalModels, findBestModel, findBestModel, findMajorityLabel, findMajorityLabel, findMinorityLabel, findMinorityLabel, labelFrequencies
public MonteCarloCV(double[][] samples, int[] labels, double ratio)
samples
- N samples of M featureslabels
- N labelsratio
- fraction of the N samples to use for training. Remainder used for testing.java.lang.IllegalArgumentException
- if ratio < 0 or ratio > 1public MonteCarloCV(double[][] samples, int[] labels)
public MonteCarloCV(CrossValidation.Data data, double ratio)
public MonteCarloCV(CrossValidation.Data data)
public CrossValidation.TrainTestSubsets getTrainTestSubset()
CrossValidation
getTrainTestSubset
in class CrossValidation
public double getRatio()