Övervakat lärande i R: Klassificering
Brett Lantz
Instructor

Sannolikheten för A betecknas P(A)

Simultansannolikheten för händelserna A och B betecknas P(A och B)

Betingad sannolikhet för händelserna A och B betecknas 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)
Övervakat lärande i R: Klassificering