Skip to content

Instantly share code, notes, and snippets.

View Bogatinov's full-sized avatar

Aleksandar Bogatinov Bogatinov

View GitHub Profile
from sklearn.naive_bayes import CategoricalNB
from sklearn.preprocessing import OrdinalEncoder
import math
if __name__ == '__main__':
dataset = [
['high', 'light', 'hard', 'dab'],
['high', 'light', 'hard', 'bor'],
['high', 'light', 'hard', 'dab'],
['high', 'light', 'soft', 'bor'],