public interface Validation
| Modifier and Type | Method and Description |
|---|---|
static <T> int[] |
test(Classifier<T> classifier,
T[] x)
Tests a classifier on a validation set.
|
static int[] |
test(DataFrameClassifier model,
smile.data.DataFrame data)
Tests a regression model on a validation set.
|
static double[] |
test(DataFrameRegression model,
smile.data.DataFrame data)
Tests a regression model on a validation set.
|
static <T> double[] |
test(Regression<T> regression,
T[] x)
Tests a regression model on a validation set.
|
static <T> int[] test(Classifier<T> classifier, T[] x)
T - the data type of input objects.classifier - a trained classifier to be tested.x - the test data set.static int[] test(DataFrameClassifier model, smile.data.DataFrame data)
model - a trained regression model to be tested.data - the test data set.static <T> double[] test(Regression<T> regression, T[] x)
T - the data type of input objects.regression - a trained regression model to be tested.x - the test data set.static double[] test(DataFrameRegression model, smile.data.DataFrame data)
model - a trained regression model to be tested.data - the test data set.