Supervised Learning in R: Classification
Brett Lantz
Instructor
The probability of A is denoted P(A)
The joint probability of events A and B is denoted P(A and B)
The conditional probability of events A and B is denoted 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