Yes, it is possible. You've set up the model params correctly with
[1,5], but you'll need to update the code that actually deals with the
model results and update it to use both predictions. In the hotgym
prediction example, the "nupic_output.py" module is only set up to
plot one prediction value, but you could easily update the run.py
script [1] to pass another prediction value into that module. Just
change line 102:
from:
prediction = result.inferences["multiStepBestPredictions"][1]
to:
prediction = result.inferences["multiStepBestPredictions"][5]
If you want to plot or write to file both predictions, you'll have to
update the nupic_output.py module to do so, but it would not be
difficult.
In the sine wave example, the situation is similar. The output module
is coded to only use one prediction value, but you can update it to
use a different prediction step by changing line 97 [2]:
from:
output.write(angle, sine_value, result, prediction_step=1)
to:
output.write(angle, sine_value, result, prediction_step=5)
[1]
https://github.com/rhyolight/nupic/blob/master/examples/opf/clients/hotgym/prediction/one_gym/run.py#L102
[2]
https://github.com/rhyolight/nupic.examples/blob/master/sine-prediction/sine_experiment.py#L97
---------
Matt Taylor
OS Community Flag-Bearer
Numenta
On Tue, Aug 5, 2014 at 2:06 AM, Naomi Basu <[email protected]> wrote:
> Classification: NPL Management Ltd - Public
>
> Hi Matt,
>
>
>
> I have been working with Cavan and we have successfully run swarms over the
> Hotgym and Sine Wave examples, with +1 step predictions.
>
> Is it possible to get +1 and +5 predictions at the same time, and maybe
> graph them both using matplotlib?
>
>
>
> We tried making the value of “predictionSteps” in the swarm_description file
> [1, 5], however, after running the swarm again, we still get just one
> prediction column in the “rec-center-hourly_out.csv” file.
>
>
>
> Thanks for your help,
>
> Naomi
>
> ________________________________
> If you have received this message in error, please notify us and remove it
> from your system.
> NPL Management Ltd cannot guarantee that the e-mail or any attachments are
> free from viruses.
>
> NPL Management Ltd is a company registered in England and Wales, number:
> 2937881
> Registered office: Serco House | 16 Bartley Wood Business Park | Hook,
> Hampshire | UK | RG27 9UY
> ________________________________
> STAY CONNECTED
>
> _______________________________________________
> nupic mailing list
> [email protected]
> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>
_______________________________________________
nupic mailing list
[email protected]
http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org