ngroups.predx | R Documentation |
Computes the number of observation in the outcome an predicted classes.
## S3 method for class 'predx'
ngroups(x, ...)
## S3 method for class 'caretx'
ngroups(x, newdata = NULL, ...)
x |
a |
... |
extra arguments, currently none. |
newdata |
optional test data set. |
For regression, NULL is returned with a warning.
a data frame with the class names and numbers of observations
in the outcome and fitted classes (predx
) or a list of such data frames
for the training, resample (CV) and test datasets.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.