Description Objects from the Class Slots Author(s) See Also Examples
An S4 class containing the output (model) of the
kdwd
Distance Weighted Discrimination function
Objects can be created by calls of the form new("kdwd", ...)
or by calls to the kdwd
function.
type
:Object of class "character"
containing
the DWD type ("bdwd", "mdwd")
kcall
:Object of class "ANY"
containing the kdwd
function call
scaling
:Object of class "ANY"
containing the
scaling information performed on the data
terms
:Object of class "ANY"
containing the
terms representation of the symbolic model used (when using a formula)
fitted
:Object of class "output"
with the fitted values,
predictions using the training set.
lev
:Object of class "vector"
with the levels of the
response (in the case of classification)
nclass
:Object of class "numeric"
containing
the number of classes (in the case of classification)
w
:Object of class "ANY"
containing the
resulting coefficients
b0
:Object of class "numeric"
containing the
resulting offset
index
:Object of class "list"
containing
the indexes of classifiers
obj
:Object of class vector
containing the value of the objective function. When using
one-against-one in multiclass classification this is a vector.
error
:Object of class "numeric"
containing the
training error
cross
:Object of class "numeric"
containing the
cross-validation error
na.action
:Object of class "ANY"
containing the
action performed for NA
Hanwen Huang: hanwenh@email.unc.edu; Perry Haaland: Perry_Haaland@bd.com; Xiaosun Lu: Xiaosun_Lu@bd.com; Yufeng Liu: yfliu@email.unc.edu; J. S. Marron: marron@email.unc.edu
1 2 3 4 5 6 7 8 9 10 | ## simple example using the promotergene data set
data(promotergene)
## train a support vector machine
gene <- kdwd(Class~.,data=promotergene,C=100,cross=4)
# the fitted values
gene@fitted
# the cross validation error
gene@cross
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.