We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a41bb commit 0ac224eCopy full SHA for 0ac224e
R/pkg/inst/tests/testthat/test_mllib.R
@@ -146,12 +146,12 @@ test_that("naiveBayes", {
146
# R code to reproduce the result.
147
# We do not support instance weights yet. So we ignore the frequencies.
148
#
149
- # library(e1071)
150
- # t <- as.data.frame(Titanic)
151
- # t1 <- t[t$Freq > 0, -5]
152
- # m <- naiveBayes(Survived ~ ., data = t1)
153
- # m
154
- # predict(m, t1)
+ #' library(e1071)
+ #' t <- as.data.frame(Titanic)
+ #' t1 <- t[t$Freq > 0, -5]
+ #' m <- naiveBayes(Survived ~ ., data = t1)
+ #' m
+ #' predict(m, t1)
155
156
# -- output of 'm'
157
0 commit comments