Amir Ziai

Results 28 comments of Amir Ziai

@AlinaKay are you using the example provided in the blog post? If not can you share the object that you're posting? Also what's version of Python are you using?

@AlinaKay can you please share what command you ran or what object you posted to the API to get this error?

@Nimitkothari seems like you have strings in your `x`. Convert those to ints, floats or booleans before you proceed.

@Shubhammix you can [only POST](https://github.com/amirziai/sklearnflask/blob/master/main.py#L27) to `/predict`. Please see #2

Can I share a sample of the JSON data you're posting to the endpoint? What is the output of `pd.DataFrame(json_)` and the output of `pd.get_dummies(pd.DataFrame(json_))`?

@Shubhammix add print statements for `pd.DataFrame(json_)` and `pd.get_dummies(pd.DataFrame(json_))` and share the output.

@yzhong52 not sure, I think at the time I wrote the code the unit tests were outdated so I had to drop a couple of requirements to make them pass....

it's a single-threaded implementation so doesn't surprise me that it's not super scalable. off the top of my head, you might be able to do a parallel map-reduce type of...