Predicting multiple steps into the future

If you are using the Hot Gym example, I believe it predicts one step into the future. The data is fed in at hourly intervals, so this is effectively predicting one hour into the future. To change this, you can update the swarm description:

Change this to:

"predictionSteps": [ 
  2 
]

Now it will swarm to get the best prediction 2 hours into the future, and return to you model params tuned for that.

You will probably also need to adjust your code that extracts the prediction from the result. In particular, this line:

Needs to be updated to read:

prediction = result.inferences["multiStepBestPredictions"][2]
1 Like