mllite / sklearn2sql_heroku

Heroku web service client for sklearn2sql
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Questions about errors #5

Open YianKim opened 2 years ago

YianKim commented 2 years ago

Hello.

I was interested in converting a machine learning model written in pmml, python, or R into sql code, and then I learned about sklearn2sql.

This was the service I was looking for, but when I ran it there was a problem. I think it's an error in requests.post(WS_URL, json=data) based on response[500]. xc1

Because of these problems, I couldn't finally get the sql code. xc2

If you could tell me how to solve it, I would be very grateful. I'm still new to this field, so please understand.

thank you.

antoinecarme commented 2 years ago

Hi @YianKim

Thanks for using this demo. This is really a "demo" that I put in place to perform some tests. You can use it but, please, don't expect too much of it in production. However, I expect the results to be OK and issues are welcome in this case.

By looking at the logs of the web service, I notice that a random forest model has been uploaded tonight? , you can get the result in this url as well as the SQL code.

https://sklearn2sql.herokuapp.com/ https://sklearn2sql.herokuapp.com/model/model1

Probably what happened is a timeout of the web service (conversion takes too much time, error 500), in this case, internally, the model conversion continues and you can always get the converted model later (wait/pause for 2 minutes or so).

Hope this helps.