樸素貝葉斯代碼實現

import numpy as np class NativeBayes: def __init__(self): # log(P(Y)), Y = 0,1 self.log_label_0_ratio = 0 self.log_label_1_ratio = 0 # array of feature weights self.weights = None
相關文章
相關標籤/搜索