机器学习bug
https://blog.csdn.net/weixin_43770077/article/details/110958529
報錯ValueError: y_true contains only one label (0). Please provide the true labels explicitly through
https://stackoverflow.com/questions/62746655/xgboost-python-error-size-of-labels-must-equal-to-number-of-rows
XGBoost Python error: “Size of labels must equal to number of rows”
Xgboost expects a 2-d array of inputs, and a vector of outputs. You are giving it two vectors, so it is confused. using df[[“columnone”]] for the input should work.
總結
- 上一篇: 高斯回归过程应用例子
- 下一篇: photoshop小结