随机森林分类器 - 第 2 部分
先来看看在不做任何特殊调整的情况下,随机森林模型的表现如何。上一练习中的 model 已可用,您也已经将数据拆分为 X_train, y_train, X_test, y_test。
本练习是课程的一部分
Python 中的欺诈检测
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Fit the model to our training set
____.fit(____, ____)
# Obtain predictions from the test data
predicted = ____(X_test)