我这样训练数据:
有四个类,数据分布均匀(标签数量相同)。
- 用过的
min_max_scaler - 用过的
train_test_split(X,y,test_size=0.3,random_state=42,stratify=y) - Ran
GradientBoostingClassifier- once withn_estimators=32, and once withn_estimators=500在训练数据上 - 在测试数据上使用 predict
- 得到 accuracy=0.94 on
n_estimators=32和 accuracy=1 onn_estimators=500。
分类报告中的准确率和召回率也是所有类的 1
看起来很可疑,但我不知道为什么......我做错了什么?