Sign in
apache
/
predictionio-template-similar-product
/
7e635ae93ca50486a66ba76842b5e1c3ae707f8f
/
.
/
data
/
send_query.py
blob: f6d9c61d8508e96fd7efb7ac0f9303f8eec1147e [
file
] [
log
] [
blame
]
"""
Send sample query to prediction engine
"""
import
predictionio
engine_client
=
predictionio
.
EngineClient
(
url
=
"http://localhost:8000"
)
print
engine_client
.
send_query
({
"items"
:
[
"i1"
,
"i3"
],
"num"
:
4
})