Skip to main content
added 26 characters in body
Source Link
COOLSerdash
  • 31.2k
  • 10
  • 104
  • 157

This is from https://scikit-learn.org/stable/modules/naive_bayes.html

In the last line it says "and we can use Maximum A Posteriori (MAP) estimation to estimate P(y) and P(xi|y); the former is then the relative frequency of class y in the training set."

and we can use Maximum A Posteriori (MAP) estimation to estimate $P(y)$ and $P(x_i|y)$; the former is then the relative frequency of class $y$ in the training set.

Why would we estimate P(y)$P(y)$ and P(xi|y)$P(x_i|y)$ through MAP? Shouldn't we calculate P(y)$P(y)$ and P(xi|y)$P(x_i|y)$ through training data? enter image description here

This is from https://scikit-learn.org/stable/modules/naive_bayes.html

In the last line it says "and we can use Maximum A Posteriori (MAP) estimation to estimate P(y) and P(xi|y); the former is then the relative frequency of class y in the training set."

Why would we estimate P(y) and P(xi|y) through MAP? Shouldn't we calculate P(y) and P(xi|y) through training data? enter image description here

This is from https://scikit-learn.org/stable/modules/naive_bayes.html

In the last line it says

and we can use Maximum A Posteriori (MAP) estimation to estimate $P(y)$ and $P(x_i|y)$; the former is then the relative frequency of class $y$ in the training set.

Why would we estimate $P(y)$ and $P(x_i|y)$ through MAP? Shouldn't we calculate $P(y)$ and $P(x_i|y)$ through training data? enter image description here

edited tags
Link
Esha
  • 21
  • 2
Source Link
Esha
  • 21
  • 2

Parameters in Naive Bayes

This is from https://scikit-learn.org/stable/modules/naive_bayes.html

In the last line it says "and we can use Maximum A Posteriori (MAP) estimation to estimate P(y) and P(xi|y); the former is then the relative frequency of class y in the training set."

Why would we estimate P(y) and P(xi|y) through MAP? Shouldn't we calculate P(y) and P(xi|y) through training data? enter image description here