Skip to content

Instantly share code, notes, and snippets.

@masroorhasan
Created January 14, 2019 00:36
Show Gist options
  • Save masroorhasan/e961805df1a006aed5be3cc8312616dc to your computer and use it in GitHub Desktop.
Save masroorhasan/e961805df1a006aed5be3cc8312616dc to your computer and use it in GitHub Desktop.
curl -X POST seldon-core-ambassador.ml-serving:80/seldon/ab-testing-housing-serve/api/v0.1/predictions -d '{"data":{"tensor":{"shape":[1,37],"values":[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0,22.0,23.0,24.0,25.0,26.0,27.0,28.0,29.0,30.0,31.0,32.0,33.0,34.0,35.0,36.0,37.0]}}}' -H "Content-Type: application/json"
{
"meta": {
"puid": "l7h22gr2malu8hv5om8u4p4kcp",
"tags": {
},
"routing": {
"ab-test": 1
},
"requestPath": {
"housing-serve-rf": "masroorhasan/housingrfserve:1.0",
"ab-test": ""
},
"metrics": []
},
"data": {
"names": ["t:0", "t:1"],
"tensor": {
"shape": [1, 2],
"values": [95456.24746031748, 95456.24746031748]
}
}
}
curl -X POST seldon-core-ambassador.ml-serving:80/seldon/ab-testing-housing-serve/api/v0.1/predictions -d '{"data":{"tensor":{"shape":[1,37],"values":[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.,22.0,23.0,24.0,25.0,26.0,27.0,28.0,29.0,30.0,31.0,32.0,33.0,34.0,35.0,36.0,37.0]}}}' -H "Content-Type: application/json"
{
"meta": {
"puid": "1ugbac4hm83qik40crhspsdkgq",
"tags": {
},
"routing": {
"ab-test": 0
},
"requestPath": {
"ab-test": "",
"housing-serve-gb": "masroorhasan/housinggbserve:1.0"
},
"metrics": []
},
"data": {
"names": ["t:0", "t:1"],
"tensor": {
"shape": [1, 2],
"values": [90218.47842350176, 90218.47842350176]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment