$$P(x|y) = \frac{P(x)P(y|x)}{P(y)}$$
Gaussian Naive Bayes
TODO Check why math rendering requires page refresh after navigation
$$P(x_i|y) = \frac{1}{\sqrt(2\pi \sigma^2_y)}\exp({- \frac{(x_i - \mu_y)^2}{2\sigma^2_y})}$$
Using Sklearn
from sklearn.naive_bayes import GaussianNB
gnb = GaussianNB()
y_pred = gnb.fit(X_train, y_train).predict(X_test)