ValidationSet
Details

- With ValidationSetdata, model and hyperparameter selections are done by testing performance on data. data can be given in any format allowed for the training set.
- With ValidationSetAutomatic, cross-validation methods on the original data supplied to Predict, Classify, etc. will be used instead.
- ValidationSetdata is typically used when the data in the training set and the data that one wishes to predict or classify come from different sources.
Examples
open all close allBasic Examples (2)
In[1]:= |
The automatically selected validation set yielded a 1-neighbor classifier:
Specify the validation set explicitly:
The explicit validation set yields a 2-neighbor classifier:
Train a predictor with a specified validation set:
In[1]:= |
Obtain the L2 regularization coefficient of the trained predictor:
Train a predictor without a specified validation set:
A different L2 regularization coefficient has been selected:
Applications (1)
Introduced in 2014
(10.0)