public class EvaluationSplit extends Object
create(DoubleVector[], DoubleVector[], float, boolean) method.| Constructor and Description |
|---|
EvaluationSplit(de.jungblut.math.DoubleVector[] trainFeatures,
de.jungblut.math.DoubleVector[] trainOutcome,
de.jungblut.math.DoubleVector[] testFeatures,
de.jungblut.math.DoubleVector[] testOutcome)
Sets a split internally.
|
| Modifier and Type | Method and Description |
|---|---|
static EvaluationSplit |
create(de.jungblut.math.DoubleVector[] features,
de.jungblut.math.DoubleVector[] outcome,
float splitFraction,
boolean random)
Creates a new evaluation split.
|
static EvaluationSplit |
createStratified(de.jungblut.math.DoubleVector[] features,
de.jungblut.math.DoubleVector[] outcome,
float splitFraction,
boolean random)
Creates a new stratified evaluation split.
|
de.jungblut.math.DoubleVector[] |
getTestFeatures() |
de.jungblut.math.DoubleVector[] |
getTestOutcome() |
de.jungblut.math.DoubleVector[] |
getTrainFeatures() |
de.jungblut.math.DoubleVector[] |
getTrainOutcome() |
public EvaluationSplit(de.jungblut.math.DoubleVector[] trainFeatures,
de.jungblut.math.DoubleVector[] trainOutcome,
de.jungblut.math.DoubleVector[] testFeatures,
de.jungblut.math.DoubleVector[] testOutcome)
public de.jungblut.math.DoubleVector[] getTrainFeatures()
public de.jungblut.math.DoubleVector[] getTrainOutcome()
public de.jungblut.math.DoubleVector[] getTestFeatures()
public de.jungblut.math.DoubleVector[] getTestOutcome()
public static EvaluationSplit create(de.jungblut.math.DoubleVector[] features, de.jungblut.math.DoubleVector[] outcome, float splitFraction, boolean random)
features - the features of your classifier.outcome - the target variables of the classifier.splitFraction - a value between 0f and 1f that sets the size of the
trainingset. With 1k items, a splitPercentage of 0.9f will result
in 900 items to train and 100 to evaluate.random - true if data needs shuffling before.EvaluationSplit.public static EvaluationSplit createStratified(de.jungblut.math.DoubleVector[] features, de.jungblut.math.DoubleVector[] outcome, float splitFraction, boolean random)
features - the features of your classifier.outcome - the target variables of the classifier.splitFraction - a value between 0f and 1f that sets the size of the
trainingset. With 1k items, a splitPercentage of 0.9f will result
in 900 items to train and 100 to evaluate.random - true if data needs shuffling before.EvaluationSplit.Copyright © 2016. All rights reserved.