參考網址:https://blog.csdn.net/m0_37870649/article/details/79549142.net
# 返回預測標籤 print(clf.predict(x_test)) # 返回預測屬於某標籤的機率 print(clf.predict_proba(x_test)) blog