I am trying to use Predictive Analytics API in Bluemix with the model given by the Data Analyst, but i always get an error as shown below.
{
"flag": false, "message": "Failed to score risk_calc, msg=null, details:java.lang.ArrayIndexOutOfBoundsException\n\tat com.ibm.spss.internal.PredictiveScorerCSPImpl$OutputStore.getString(PredictiveScorerCSPImpl.java:198)\n\tat com.ibm.spss.blackbox.score.resource.ScoreUtil.score(ScoreUtil.java:190)\n\tat com.ibm.spss.blackbox.score.resource.ScoreResource.scoreWithInputdata(ScoreResource.java:69)\n\tat sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)\n\tat ..........
}
But this model runs on the IBM SPSS modeler and gives required output. Also the scoring branch used is based on Text Mining Model. So I think we are missing a link between the IBM SPSS modeler and using it with Bluemix API. Any suggestions on how to resolve this error? Thanks!
Answer by Rodney Vin (87) | Aug 18, 2016 at 09:48 PM
need more details about your Source Node data structure and your Score Request JSON.
It seems your JSON does not match with your Source Node.