简体   繁体   中英

regarding passing the wrong object

I was building a project where I need to take a form text from html and give it to predict_proba() function of the model file imported. I am using logistic regression. But every time I pass the input string X to the function it gives me that string is not a correct object type to be passed. the same happens with lists.

please try to read up about any model you use, in this case - logistic regression.

To get probabilities of occurrence of the classes, the input text needs to go under various pre-processing steps in order to provide correct results. One cannot simply use a string to get output from a model.

Please check this link for further info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM