Skip to contents

Wraps e1071::svm with a linear kernel.

Usage

morie_svm_hinge_primal(x, y, C = 1, seed = 0L)

Arguments

x

Numeric predictor matrix.

y

Binary response.

C

Soft-margin inverse regularisation.

seed

RNG seed.

Value

Named list: estimate, intercept, weights, train_accuracy, C, classes, n, method.

Examples

# See the package vignettes for usage examples:
#   vignette(package = "rmorie")