mirror of
https://github.com/Azure/MachineLearningNotebooks.git
synced 2025-12-21 10:05:09 -05:00
fix json output
This commit is contained in:
@@ -296,7 +296,8 @@
|
|||||||
" data = np.array(json.loads(raw_data)['data'])\n",
|
" data = np.array(json.loads(raw_data)['data'])\n",
|
||||||
" # make prediction\n",
|
" # make prediction\n",
|
||||||
" y_hat = model.predict(data)\n",
|
" y_hat = model.predict(data)\n",
|
||||||
" return json.dumps(y_hat.tolist())"
|
" # you can return any data type as long as it is JSON-serializable\n",
|
||||||
|
" return y_hat.tolist()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user