The function produces the predictions for a two-layer feed-forward neural network for ordinal data.
# S3 method for brnn_ordinal predict(object,newdata,…)
an object of the class
brnn_ordinal as returned by
matrix or data frame of test examples. A vector is considered to be a row vector comprising a single case.
arguments passed to or from other methods.
A list with components:
Predicted class (an integer).
Posterior probability of belonging to a class given the covariates.
This function is a method for the generic function
predict() for class
It can be invoked by calling
predict(x) for an
x of the appropriate class, or directly by
predict.brnn_ordinal(x) regardless of the class of the object.