Sign in
apache
/
predictionio-template-java-ecom-recommender
/
c12dbe7abdd22cf62c2c86d207388467615d6ba6
/
.
/
data
/
send_query.py
blob: 3b2c2a4578abea239aae948c85bc4a94ecfc4dbb [
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
}))