Sign in
apache
/
predictionio-template-ecom-recommender
/
refs/heads/master
/
.
/
data
/
send_query.py
blob: df7f624d0f4bab6a07de4e5c3f999ceb625da036 [
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
}))