Skip to content

Chapter 2 - Example 2-11. Model query example  #141

Open
@akhimji

Description

@akhimji

Attempting to execute the example is chapter 2

Python 3.6.9
kubeflow 1.2.0
tensorflow (1.14.0)
requests (2.25.1)
numpy (1.19.5)

Please use tf.one_hot on tensors.
Extracting MNIST_data/t10k-images-idx3-ubyte.gz
Extracting MNIST_data/t10k-labels-idx1-ubyte.gz
...truncated output for readability...

/seldon/ml/mnist-classifier/api/v0.1/predictions
{
  "status": {
    "code": -1, 
    "info": "Empty json parameter in data", 
    "reason": "MICROSERVICE_BAD_DATA", 
    "status": 1
  }
}

Have confirmed request is not empty.

request = {"data": {"names": features, "ndarray": data.tolist()}}

@holdenk Hoping you can help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions