Rで学ぶSupervised Learning:分類
Brett Lantz
Instructor

A の確率は P(A) で表されます

事象 A と B の同時確率は P(A and B) で表されます

事象 A と B の条件付き確率は P(A | B) で表されます
# building a Naive Bayes model
library(naivebayes)
m <- naive_bayes(location ~ time_of_day, data = location_history)
# making predictions with Naive Bayes
future_location <- predict(m, future_conditions)
Rで学ぶSupervised Learning:分類