R में Supervised Learning: Classification
Brett Lantz
Instructor

A की probability को P(A) से दर्शाते हैं

घटनाओं A और B की joint probability को P(A and B) से दर्शाते हैं

घटनाओं A और B की conditional probability को 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 में Supervised Learning: Classification