Supervised Learning in R: Classification
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)
Supervised Learning in R: Classification