diff --git a/MachineLearning/B/use_GaussianNB.py b/MachineLearning/B/use_GaussianNB.py index 974e291..be59a1a 100644 --- a/MachineLearning/B/use_GaussianNB.py +++ b/MachineLearning/B/use_GaussianNB.py @@ -11,4 +11,4 @@ # 使用fit()进行训练, 使用predict()进行预测, clf.fit(X, y) -print(clf.predict([-0.8, -1])) \ No newline at end of file +print(clf.predict([[-0.8, -1]]))