You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trained a classification model with two categorical variables:
country
browser
I have done it in Datalab with Tensorflow version 1.8. Since there can be missing values in both variables, I have used defaults values in the reading function:
I wanted to export the model to use it in real time. In the serving function I have used placeholder_with_default functions in order to manage the missing values:
Once the model was ready to be deployed, I wanted to check what happened when one variable was missing (country is the missing one). This is how I did:
%%writefile ./test.json
{"country": "Venezuela"}
%%bash
gcloud ml-engine local predict \
--model-dir=path _to_the_model \
--json-instances=./test.json
Everything is ok with the local prediction. However, when I deploy to the MLE and test with missing values, I get some errors.
Input 1
%%writefile ./test.json
{"country": "Venezuela"}
Output1
{
"error": "Prediction failed: Error during model execution: AbortionError(code=StatusCode.INVALID_ARGUMENT, details=\"input size does not match signature\")"
}
So, locally I manage to set one variable to null and get a prediction. However, on the Cloud that is not possible. Can you help me, please? I think this is related to https://github.com/tensorflow/tensorflow/issues/10014
The text was updated successfully, but these errors were encountered:
I have trained a classification model with two categorical variables:
I have done it in Datalab with Tensorflow version 1.8. Since there can be missing values in both variables, I have used defaults values in the reading function:
I wanted to export the model to use it in real time. In the serving function I have used placeholder_with_default functions in order to manage the missing values:
Once the model was ready to be deployed, I wanted to check what happened when one variable was missing (country is the missing one). This is how I did:
%%bash gcloud ml-engine local predict \ --model-dir=path _to_the_model \ --json-instances=./test.json
Everything is ok with the local prediction. However, when I deploy to the MLE and test with missing values, I get some errors.
Input 1
Output1
Input 2
Output 2
I am using the following comand:
So, locally I manage to set one variable to null and get a prediction. However, on the Cloud that is not possible. Can you help me, please? I think this is related to https://github.com/tensorflow/tensorflow/issues/10014
The text was updated successfully, but these errors were encountered: