Skip to contents

Setup hyperparameters for LinearSVM training.

Usage

setup_LinearSVM(cost = 1, ifw = FALSE)

Arguments

cost

(Tunable) Numeric: Cost of constraints violation.

ifw

Logical: If TRUE, use Inverse Frequency Weighting in classification.

Value

LinearSVMHyperparameters object.

Details

Get more information from e1071::svm.

Author

EDG

Examples

linear_svm_hyperparams <- setup_LinearSVM(cost = 0.5, ifw = TRUE)
linear_svm_hyperparams
#> <LinearSVMHyperparameters>
#>         hyperparameters: 
#>                          kernel: <chr> linear
#>                            cost: <nmr> 0.50
#>                             ifw: <lgc> TRUE
#> tunable_hyperparameters: <chr> cost, ifw
#>   fixed_hyperparameters: <chr> 
#>                   tuned: <int> -1
#>               resampled: <int> 0
#>               n_workers: <int> 1
#> 
#>   No search values defined for tunable hyperparameters.