Description Usage Arguments Details Value
View source: R/check-arguments.r
This function is a helper function that checks the arguments passed to make sure the input is valid and consistent across all error rate estimators.
1 | check_arguments(x, y, train, classify)
|
x |
a matrix of n observations and p features |
y |
a vector of n class labels |
train |
a function that builds the classifier (See details) |
classify |
a function that classified observations
from the constructed classifier from |
We expect that the first two arguments of the classifier
function given in train
are x
and y
,
corresponding to the data matrix and the vector of their
labels. Additional arguments can be passed to the
train
function. The returned object should be a
classifier that will be passed to the function given in
the classify
argument.
TRUE
invisibly if no errors are encountered.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.