View source: R/supportvectormachine.R
SupportVectorMachine | R Documentation |
Fit a support vector machine model
SupportVectorMachine(
formula,
data = NULL,
subset = NULL,
weights = NULL,
output = "Accuracy",
missing = "Exclude cases with missing data",
cost = 1,
seed = 12321,
statistical.assumptions,
show.labels = FALSE,
...
)
formula |
A formula of the form |
data |
A |
subset |
An optional vector specifying a subset of observations to be
used in the fitting process, or, the name of a variable in |
weights |
An optional vector of sampling weights, or the
name of a variable in |
output |
One of |
missing |
How missing data is to be treated. Options:
|
cost |
A positive number controlling the compromoise between exactly fitting the training data (higher cost) and the ability to generalise to unseen data (lower cost). |
seed |
The random number seed. |
statistical.assumptions |
A Statistical Assumptions object. |
show.labels |
Shows the variable labels, as opposed to the labels, in the outputs, where a variables label is an attribute (e.g., attr(foo, "label")). |
... |
Other arguments to be supplied to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.