Skip to main content
14-Alexandrite
Dec 14, 2023 4:55 AM UTC
Solved

unable to get expected output from ExecuteJob() snippet service.

Hi 

I created one model in thingworx analytics which have 0 lookbacksize and 5 lookahead and calling that model in thingworx service by executeJob() and trying get the 5 output data as there are 5 lookahead but unable to get the 5 output data. Can anyone help me to resolve this issue.

cmorfinAnswer
19-Tanzanite
Dec 14, 2023 4:01 PM UTC

Hi @Ru_01 

 

Here are some further information:

When you score records against a model with lookahead 5, it will output only one score result for t+5.

It does not output 5 results for t+1, t+2, t+3, t+4 and t+5

If you want to have output for t+1, t+2, t+3, t+4 and t+5, you need to create 5 models each with a different value of lookahead from 1 to 5.

 

I hope that clarifies the output you see

2 replies

19-Tanzanite
Dec 14, 2023 11:08 AM UTC

Hi @Ru_01 

 

I am checking on this, I shall get back to you with some inputs

 

Regards

Christophe

 

Translate
cmorfin19-TanzaniteAnswer
19-Tanzanite
Dec 14, 2023 4:01 PM UTC

Hi @Ru_01 

 

Here are some further information:

When you score records against a model with lookahead 5, it will output only one score result for t+5.

It does not output 5 results for t+1, t+2, t+3, t+4 and t+5

If you want to have output for t+1, t+2, t+3, t+4 and t+5, you need to create 5 models each with a different value of lookahead from 1 to 5.

 

I hope that clarifies the output you see

Translate