Sign in
apache
/
predictionio-template-similar-product
/
400b49c95a9d58b3007ee1e7a27653083454af79
/
.
/
data
/
send_query.py
blob: 145d1076cdb0834414d6d6342125af38e50f6b8b [
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
}))