Skip to content

Instantly share code, notes, and snippets.

View sindrekjr's full-sized avatar

Sindre Kjær sindrekjr

View GitHub Profile
@sindrekjr
sindrekjr / EmonomialNB.py
Created November 25, 2019 10:36
Naive Bayes classifier for machine learning
import math
class EmonomialNB:
"""
Multinomial Naive Bayes Classifier.
:param alpha: float (default = 1.0)
Smoothing. Can be 0.
"""