Description Usage Arguments Value Methods (by generic)
View source: R/ordinal_ridge.R
Ordinal regression with a ridge regularization penalty
1 2 3 4 5 6 7 8 9 10 11 12 |
K |
an n-by-p matrix of n samples in p dimensions or an n-by-n kernel matrix |
y |
n-by-1 vector of (ordinal) labels |
kernel |
set TRUE if K is a kernel matrix (Default: TRUE if K is a square matrix, FALSE otherwise) |
lambda |
regularization coefficient |
eps |
convergence tolerance |
maxIter |
maximum number of iterations |
verbose |
if TRUE, reports objective function value at each iteration |
mdl |
model returned by |
newdata |
n1-by-n kernel matrix of n1 new points against n points used for training |
OrdinalRidge returns a list with the following elements: #'
A n-by-1 vector of kernel weights
A nb-by-1 vector of bias terms to be used as decision boundaries
Names of classes from the original vector of labels y
predict() returns a list with the following elements:
An n1-by-1 vector of scores
A factor of length n1 containing predictions
An n1-by-nb matrix of probabilities for each of the nb decision boundaries
predict
: Predict method for ordinalRidge models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.