R 監督式學習:分類
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 監督式學習:分類