Nevermind, i messed up the preprocessing
Answered
Hey, I'Ve Spun Up Clearml Serving Using The Example Here:
Hey, i've spun up ClearML Serving using the example here: None
When running curl -X POST "
None " -H "accept: application/json" -H "Content-Type: application/json" -d '{"x0": 1, "x1": 2}'
I get:
{
"detail":"Error processing request: Expected 2D array, got scalar array instead:
array={'x0': 1, 'x1': 2}
Reshape your data either using array.reshape(-1, 1) or if your data has a single feature or array.reshape(1, -1) if it contains a single sample."
}
The logs show the following warning:/usr/local/lib/python3.9/site-packages/sklearn/base.py:329: UserWarning: Trying to unpickle estimator LogisticRegression from version 1.1.1 when using version 1.0.2. This might lead to breaking code or invalid results. Use at your own risk.
923 Views
1
Answer
one year ago
one year ago
Tags