我有一个像这样的数据集:
print(X_test.dtypes)
metric1 int64
rank float64
device_type int8
NA_estimate float64
当我尝试对此数据集进行预测时,出现以下错误:
y_test_pred_xgb = clf_xgb.predict(xgb.DMatrix(X_test))
TypeError: Not supported type for data.<class 'xgboost.core.DMatrix'>
我搜索了一下,但只发现了object
导致问题的可变数据类型的讨论。我的数据还有其他问题还是其他问题?我查看了各种博客和 Kaggle 代码,但没有运气。