樸素貝葉斯模型代碼 from sklearn.naive_bayes import GaussianNB nb_clf = GaussianNB() # 高斯樸素貝葉斯模型 nb_clf.fit(X_train,y_train)