RandomForestClassifier is throwing error: Encoders require their input to be uniformly strings or numbers. Got ['int', 'str']

前端 未结 0 823
深忆病人
深忆病人 2021-01-28 10:29

I am trying to fit a RandomForestClassifier, like this.

from sklearn.pipeline import make_pipeline
pipe = make_pipeline(col_trans, rf_classifier)
pipe.fit(X_train         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题