SeldonIO / seldon-server

Machine Learning Platform and Recommendation Engine built on Kubernetes
https://www.seldon.io/
Apache License 2.0
1.47k stars 300 forks source link

Custom prediction output #51

Closed rmdort closed 7 years ago

rmdort commented 7 years ago

Can seldon be used to output prediction in any JSON format? My model outputs predictions as well other custom data.

Can i change this below format to anything i want?

{
  "predictions": [
    {
      "score": 0.9,
      "classId": "1",
      "confidence":0.7
    }
  ]
}
ukclivecox commented 7 years ago

Hi,

You can send additional information in a custom field in the JSON. This is illustrated in the gRPC section of the docs http://docs.seldon.io/grpc.html but applies also to JSON responses.

Clive

On 7 May 2017 at 16:49, Vinay M notifications@github.com wrote:

Can seldon be used to output prediction in any JSON format? My model outputs predictions as well other custom data.

Can i change this below format to anything i want?

{ "predictions": [ { "score": 0.9, "classId": "1", "confidence":0.7 } ] }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SeldonIO/seldon-server/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/AKEuA5kdovJMhf-pMudz7w0PCyAAHaLjks5r3efygaJpZM4NTMZO .