Sign in
apache
/
predictionio-template-ecom-recommender
/
2464b5e652ee375e4de3c1755aa99d23f65a5762
/
.
/
data
/
send_query.py
blob: b0eb651fae8444630b5a56cfc46a7e9dc7284071 [
file
] [
log
] [
blame
]
"""
Send sample query to prediction engine
"""
import
predictionio
engine_client
=
predictionio
.
EngineClient
(
url
=
"http://localhost:8000"
)
print
engine_client
.
send_query
({
"user"
:
"u1"
,
"num"
:
4
})