ValueError: Number of features of the model must match the input

后端 未结 5 1247
谎友^
谎友^ 2020-12-14 12:11

I\'m getting this error when trying to predict using a model I built in scikit learn. I know that there are a bunch of questions about this but mine seems different from the

5条回答
  •  佛祖请我去吃肉
    2020-12-14 13:12

    The size of the training data(excluding labels,however) which you fit to the model should be same as the size of the data which you are going to predict

提交回复
热议问题