The ModelResult
object has a property called inferences
, which looks like this:
{
'multiStepPredictions':{
1:{
40.2:0.91409241368304817,
39.72324776721089:0.0033501887645081565,
38.9483378705:0.0022740192046981555,
4.738145870751808:0.0022601530710983958,
37.03395142903199:0.002925129238754846,
38.0683314:0.0022796547206743799,
44.167395299999995:0.0026556539079170645,
43.22574693799999:0.0025154454074292638
}
},
...
}
You can find out how confident each prediction is here. For example, this model is predicting one step into the future, so to get the confidences for that prediction, you can access result.inferences["multiStepPredictions"][1]
, which tells you that the model is 91.41% confident that the next value (1
step ahead) will be 40.2 (from 40.2:0.91409241368304817
). Likewise, the model is 0.34% confident that 39.72 is the next value.
If you had asked for 1
and 5
steps ahead, the result.inferences["multiStepPredictions"]
would contain confidences for 5-steps ahead as well, like this:
{
'multiStepPredictions':{
1:{
23.5:0.0018656716417910447,
41.5:0.0018656716417910447,
28.6:0.0018656716417910447,
47.5:0.0018656716417910447,
45.61:0.0018656716417910447,
11.6:0.0018656716417910447,
5.338860581200769:0.0018656716417910447,
22.4:0.94029850746269183
},
5:{
23.5:0.0018656716417910447,
41.5:0.0018656716417910447,
28.6:0.0018656716417910447,
47.5:0.0018656716417910447,
45.61:0.0018656716417910447,
11.6:0.0018656716417910447,
5.338860581200769:0.0018656716417910447,
22.4:0.94029850746269183
}
},
...
}