R 中的监督学习:分类
Brett Lantz
Instructor

事件 A 的概率记为 P(A)

联合概率记为 P(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 中的监督学习:分类