Skip to content

Commit 9c716b6

Browse files
committed
I think the best we can do for engine specific defaults for SVM
1 parent 2789b86 commit 9c716b6

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

man/rmd/svm-poly.Rmd

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,20 @@ svm_poly() %>%
2222
## Parameter translations
2323

2424
The standardized parameter names in parsnip can be mapped to their original
25-
names in each engine that has main parameters:
25+
names in each engine that has main parameters. Each engine typically has a
26+
different default value (shown in parentheses) for each parameter.
2627

2728
```{r echo = FALSE, results = "asis"}
29+
## these values were manually checked :/ on 2020-05-28
30+
get_defaults_svm_poly <- function() {
31+
tibble::tribble(
32+
~model, ~engine, ~parsnip, ~original, ~default,
33+
"svm_poly", "kernlab", "cost", "C", "1",
34+
"svm_poly", "kernlab", "degree", "degree", "1",
35+
"svm_poly", "kernlab", "scale_factor", "scale", "1",
36+
"svm_poly", "kernlab", "margin", "epsilon", "0.1",
37+
)
38+
}
2839
parsnip::convert_args("svm_poly")
2940
```
3041

man/rmd/svm-rbf.Rmd

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,21 @@ translate between engines, `sigma = 1/gammas^2`. Users will be specifying
4848
## Parameter translations
4949

5050
The standardized parameter names in parsnip can be mapped to their original
51-
names in each engine that has main parameters:
51+
names in each engine that has main parameters. Each engine typically has a
52+
different default value (shown in parentheses) for each parameter.
5253

5354
```{r echo = FALSE, results = "asis"}
55+
## these values were manually checked :/ on 2020-05-28
56+
get_defaults_svm_rbf <- function() {
57+
tibble::tribble(
58+
~model, ~engine, ~parsnip, ~original, ~default,
59+
"svm_rbf", "kernlab", "cost", "C", "1",
60+
"svm_rbf", "kernlab", "rbf_sigma", "sigma", "1",
61+
"svm_rbf", "kernlab", "margin", "epsilon", "0.1",
62+
"svm_rbf", "liquidSVM", "cost", "lambdas", "varies",
63+
"svm_rbf", "liquidSVM", "rbf_sigma", "gammas", "varies",
64+
)
65+
}
5466
parsnip::convert_args("svm_rbf")
5567
```
5668

0 commit comments

Comments
 (0)