Skip to content

Commit 3871fd8

Browse files
Merge pull request #714 from tidymodels/naivebayes-usekernel-documentation
add missing comment about usekernel in naive_Bayes naivebayes
2 parents c6e97e6 + 94d259c commit 3871fd8

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

man/details_naive_Bayes_naivebayes.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rmd/naive_Bayes_klaR.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This model has `r nrow(param)` tuning parameter:
2323
param$item
2424
```
2525

26-
Note that `usekernel` is always set to `TRUE` for the `klaR` engine.
26+
Note that the engine argument `usekernel` is set to `TRUE` by default when using the `klaR` engine.
2727

2828
## Translation from parsnip to the original package
2929

man/rmd/naive_Bayes_klaR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This model has 2 tuning parameter:
1414

1515
- `Laplace`: Laplace Correction (type: double, default: 0.0)
1616

17-
Note that `usekernel` is always set to `TRUE` for the `klaR` engine.
17+
Note that the engine argument `usekernel` is set to `TRUE` by default when using the `klaR` engine.
1818

1919
## Translation from parsnip to the original package
2020

man/rmd/naive_Bayes_naivebayes.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ This model has `r nrow(param)` tuning parameter:
2323
param$item
2424
```
2525

26+
Note that the engine argument `usekernel` is set to `TRUE` by default when using the `naivebayes` engine.
27+
2628
## Translation from parsnip to the original package
2729

2830
`r uses_extension("naive_Bayes", "naivebayes", "classification")`

man/rmd/naive_Bayes_naivebayes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ This model has 2 tuning parameter:
1414

1515
- `Laplace`: Laplace Correction (type: double, default: 0.0)
1616

17+
Note that the engine argument `usekernel` is set to `TRUE` by default when using the `naivebayes` engine.
18+
1719
## Translation from parsnip to the original package
1820

1921
The **discrim** extension package is required to fit this model.

0 commit comments

Comments
 (0)