-
Notifications
You must be signed in to change notification settings - Fork 0
/
day073.py
42 lines (38 loc) · 971 Bytes
/
day073.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## Request format ##
{
# Optional: serving signature to use.
# If unspecifed default serving signature is used.
"signature_name": <string>,
# Optional: Common context shared by all examples.
# Features that appear here MUST NOT appear in examples (below).
"context": {
"<feature_name3>": <value>|<list>
"<feature_name4>": <value>|<list>
},
# List of Example objects
"examples": [
{
# Example 1
"<feature_name1>": <value>|<list>,
"<feature_name2>": <value>|<list>,
...
},
{
# Example 2
"<feature_name1>": <value>|<list>,
"<feature_name2>": <value>|<list>,
...
}
...
]
}
## Response format ##
{
"result": [
# List of class label/score pairs for first Example (in request)
[ [<label1>, <score1>], [<label2>, <score2>], ... ],
# List of class label/score pairs for next Example (in request)
[ [<label1>, <score1>], [<label2>, <score2>], ... ],
...
]
}