2015-04-23 102 views
0

我在建模器食譜中找到的預測腳本掙扎,應該很容易解決,但是這太早了,我做了這種類型的事情。SPSS Modeler中的CLEM預測腳本

錯誤消息:預期爲「0」的範圍內「1」的數,但發現「1」

腳本確定待預測行數和在一個局部變量讀它( num_recs),並從神經網絡模型迭代得分,每次成功評分後運行一個新的得分記錄。結果是7天預測。

這是腳本部分。如果有人能夠在短時間內(即明天,週五)儘快查看,我將不勝感激,這將會得到很大的滿足。

var num_recs 
var idx 

execute rec_count_table 

> # count the number of records to be forecast 

set num_recs = value rec_count_table.output at 1 1 
clear outputs 

for idx from 1 to num_recs 

> # generate forecast one record at a time 

    execute forecast_data_overwrite 
end for 
+0

thx for editing figurine – rZebra

回答

0

我遇到了同樣的問題。我將select_forecast_recs節點更改爲'Power Demand' = '$null$' vs. @NULL('Power Demand')

希望這會有所幫助,因爲@NULL('Power Demand')代碼不適合我。

戴爾。