- 博客(3)
- 收藏
- 关注
原创 TypeError: loop of ufunc does not support argument 0 of type str which has no callable log method
【问题解决!!!】TypeError: loop of ufunc does not support argument 0 of type str which has no callable log method
2022-04-20 20:12:16
20246
3
转载 解决XGboost安装问题:xgboost.core.XGBoostError: XGBoost Library (xgboost.dll) could not be loaded.
解决XGboost安装问题:xgboost.core.XGBoostError: XGBoost Library (xgboost.dll) could not be loaded.今天在拟合xgboost模型的时候,输入如下代码段:import xgboostfrom xgboost import XGBClassifiermodel = XGBClassifier()model.fit(X_train, y_train)出现了报错:于是,根据错误提示“likely cause”的指示,
2021-06-14 21:52:51
2530
1
原创 成功解决TypeError: Encoders require their input to be uniformly strings or numbers.
成功解决TypeError: Encoders require their input to be uniformly strings or numbers. Got [‘float‘, ‘int‘,‘str’]今天在给数据编码的时候,在将离散特征转换为整数编码时,出现了报错如下:后来发现可以先将要编码的离散变量全部转换成字符型的,例如作出如下修改:from sklearn.preprocessing import LabelEncoderclean_loan_of[attri_cols] =
2021-06-13 20:20:20
7196
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人