Closed pkallberg closed 6 years ago
it seems it has some extra braces on the inputs
I need to confirm but this should work
{
"class": "Price",
"inputs": [
{"key": "user_age", "type": "number", "value": "25"},
{"key": "user_interests", "type": "list", "value": "music,cooking,ml"},
{"key": "user_location", "type": "keyword", "value": "London"}
]
}
You're right, it was a bug in the documentation.
I think it's fixed if you pull the latest box.
Yeah all good, thanks!
I'm POSTing the provided example payload to
http://localhost:8080/classificationbox/models/ecommerce/teach
:And receiving a HTTP 500 back with message
invalid character '{' looking for beginning of object key string