{"id":6,"date":"2017-05-18T19:19:18","date_gmt":"2017-05-18T19:19:18","guid":{"rendered":"http:\/\/bskog.com\/ai\/?p=4"},"modified":"2017-05-18T19:19:18","modified_gmt":"2017-05-18T19:19:18","slug":"naive-bayes-classifiers","status":"publish","type":"post","link":"http:\/\/bskog.com\/ai\/2017\/05\/18\/naive-bayes-classifiers\/","title":{"rendered":"Naive Bayes Classifiers"},"content":{"rendered":"<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Naive_Bayes_classifier\">Naive Bayes Classifier<\/a> is a probabilistic classifier used in supervised machine learning that is especially useful when\u00a0categorizing texts. They apply <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bayes%27_theorem\">Bayes&#8217; Theorem<\/a>\u00a0which describes the probability of an event to take place based on given knowledge of conditions related to the event.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8 size-full\" src=\"http:\/\/bskog.com\/ai\/wp-content\/uploads\/2017\/05\/Ska\u0308rmavbild-2017-05-18-kl.-22.23.52.png\" alt=\"\" width=\"830\" height=\"202\" \/><\/p>\n<p>Where A and B are events and A != B<br \/>\nP(A) and P(B) are probabilities of observing A and B without regards to each other.<br \/>\nP(A|B), a conditional probability of observing A given that B is true.<br \/>\nP(B|A) is the probability of observing B if A is true.<\/p>\n<p>One example of a library where you can use a Gaussian Naive Bayes classifer can be found in the scikit-learn python library\u00a0<a href=\"http:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.naive_bayes.GaussianNB.html\">sklearn.naive_bayes.GaussianNB<\/a>\u00a0with which you can train (fit) to tell wether a feature match a label.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Naive Bayes Classifier is a probabilistic classifier used in supervised machine learning that is especially useful when\u00a0categorizing texts. They apply Bayes&#8217; Theorem\u00a0which describes the probability of an event to take place based on given knowledge of conditions related to the event. Where A and B are events and A != B P(A) and P(B) are &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/bskog.com\/ai\/2017\/05\/18\/naive-bayes-classifiers\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Naive Bayes Classifiers&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,32,34],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-algorithms","category-shallow-machine-learning","category-supervised-machine-learning"],"_links":{"self":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":0,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}