vcr.neural.newdata {classmap} | R Documentation |
Prepare for visualization of a neural network classification on new data.
Description
Prepares graphical display of new data fitted by a neural
net that was modeled on the training data, using the output
of vcr.neural.train
on the training data.
Usage
vcr.neural.newdata(Xnew, ynew = NULL, probs,
vcr.neural.train.out)
Arguments
Xnew |
data matrix of the new data, with the same number of columns as in the training data. Missing values in |
ynew |
factor with class membership of each new case. Can be |
probs |
posterior probabilities obtained by running the neural net on the new data. |
vcr.neural.train.out |
output of |
Value
A list with components:
yintnew |
number of the given class of each case. Can contain |
ynew |
given class label of each case. Can contain |
levels |
levels of the response, from |
predint |
predicted class number of each case. Always exists. |
pred |
predicted label of each case. |
altint |
number of the alternative class. Among the classes different from the given class, it is the one with the highest posterior probability. Is |
altlab |
alternative label if yintnew was given, else |
PAC |
probability of the alternative class. Is |
fig |
distance of each case |
farness |
farness of each case from its given class. Is |
ofarness |
for each case |
Author(s)
Raymaekers J., Rousseeuw P.J.
References
Raymaekers J., Rousseeuw P.J.(2021). Silhouettes and quasi residual plots for neural nets and tree-based classifiers. (link to open access pdf)
See Also
vcr.neural.train
, classmap
, silplot
, stackedplot
Examples
# For examples, we refer to the vignette:
## Not run:
vignette("Neural_net_examples")
## End(Not run)