Sign in
apache
/
predictionio-template-recommender
/
cbb9d4ff28311bd60aa819a4425f08441810e826
/
.
/
data
/
send_query.py
blob: 3dafd6d708c44d1c54cc7e11774bca479b72416d [
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"
:
"1"
,
"num"
:
4
}))