Hi guys. I'm trying to créate a REST request to ibm spss C&D so i read several guides and got this: { "id":"ScoreMiguel", "requestInputTable":[{ "name":"ppp", "requestInputRow":[ {
"input":[ {"name":"age","value":"3.2"}, {"name":"address","value":"3.2"}, {"name":"ed","value":"3.2"}, {"name":"employ","value":"3.2"}, {"name":"income","value":"3.2"}, {"name":"debtinc","value":"4.2"}, {"name":"creddebt","value":"6.2321"}, {"name":"othdebt","value":"6.2"}, {"name":"default","value":"32.2"} ] }] }], "context":[] }
Server response was 200 and got me this: { "columnNames": { "name": [3] 0: "default" 1: "$L-default" 2: "$LP-default"
}- "providedBy": "ScoreMiguel" "id": "b94ac51b-b1f4-4ee2-9d1b-b0e9ea0c243c" }
Why dont i get a score result? I know that probably is a silly question but i don't have developer skills sorry.
Answer by Jared Peterson (320) | Jul 15, 2016 at 01:25 PM
@noobguy, can you confirm:
"ScoreMiguel" is name of the Scoring Config "ppp" is the exact name of the source node for your stream and you have only one source node
Also, can you show us a screenshot of your Scoring Config >> Input Data Order screen and one of the stream?
Answer by mauriciooscar (1) | Jul 15, 2016 at 03:18 PM
Thanks Jared. Mauricio.
Answer by noobguy (1) | Jul 15, 2016 at 03:25 PM
Hi Jared. Yep, the source node name was the problem. I changed it and the problem was solved.
{
"id":"ScoreMiguel",
"requestInputTable":[{
"name":"bankloan.sav",
"requestInputRow":[
{
"input":[
{"name":"age","value":"3.2"},
{"name":"address","value":"3.2"},
{"name":"ed","value":"3.2"},
{"name":"employ","value":"3.2"},
{"name":"income","value":"3.2"},
{"name":"debtinc","value":"4.2"},
{"name":"creddebt","value":"6.2321"},
{"name":"othdebt","value":"6.2"},
{"name":"default","value":"32.2"}
]
}]
}],
"context":[]
}
REST RESPONSE:
{
"columnNames": {
"name": [
"default",
"$L-default",
"$LP-default"
]
},
"rowValues": [
{
"value": [
{
"value": "32"
},
{
"value": "1"
},
{
"value": "0.5332578923637764"
}
]
}
],
"providedBy": "ScoreMiguel",
"id": "726a5fa2-4787-4478-b49f-fca9c9bf3436"
}
Now I want to request this score model at the RTS server but i will post later asking for help (if it necesary).
Thanks for your help!!!
REST score response without score column 0 Answers
Is it possible to do scoring without Scoring Server? 0 Answers
Real Time Scoring Muliple input Rows with aggregation 0 Answers
Is it possible to call Batch Scoring (CAD&S) from HTML Page? 0 Answers
How to pass SPSS Collaboration and Deployment Services job variables to Statistics nodes 1 Answer