Sign in
apache
/
predictionio-template-java-ecom-recommender
/
refs/tags/v0.11.0-incubating
/
.
/
data
/
send_query.py
blob: 1e4c4bbde0698a33537262485d1f0af6fe9179ed [
file
] [
log
] [
blame
]
"""
Send sample query to prediction engine
"""
import
predictionio
engine_client
=
predictionio
.
EngineClient
(
url
=
"http://localhost:8000"
)
print
engine_client
.
send_query
({
"userEntityId"
:
"u1"
,
"number"
:
4
})