SVM::crossvalidate
(PECL svm >= 0.1.0)
SVM::crossvalidate — Test training params on subsets of the training data.
Описание
public float svm::crossvalidate
( array $problem
, int $number_of_folds
)
Список параметров
-
problem
-
The problem data. This can either be in the form of an array, the URL
of an SVMLight formatted file, or a stream to an opened SVMLight
formatted datasource.
-
number_of_folds
-
The number of sets the data should be divided into and cross tested.
A higher number means smaller training sets and less reliability. 5 is
a good number to start with.
Возвращаемые значения
The correct percentage, expressed as a floating point number from 0-1.
In the case of NU_SVC or EPSILON_SVR kernels the mean squared error will
returned instead.