Random Forest 分類器 - 第 2 部分
先來看看在「不做任何特別調整」的情況下,Random Forest 模型的表現如何。上一題建立的 model 已可使用,而且你已經把資料分割為 X_train, y_train, X_test, y_test。
本練習屬於課程
Fraud Detection in Python
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Fit the model to our training set
____.fit(____, ____)
# Obtain predictions from the test data
predicted = ____(X_test)