問題タブ [holtwinters]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
316 参照

r - "Optimization failure" in a R loop

I have a for loop in which I need to perform the forecast for different values passed by the parameter i, when there are errors in the Holtwinters Forecast, often optimization failure, the loop is interrupted. How can I make my code just skip the error ones and go to the next i and continue the operations in the loop. For example, if I run the code below, the loop will be interrupted when i=2 by the error: Error in HoltWinters(TS[[i]]) : optimization failure

What I need is when the error is found, it automatically move to i=3 and continue the operations rather than being interrupted, like "continue" in C++

Could someone pls kindly help with that ?

Thank you.

0 投票する
0 に答える
452 参照

python - Python で R ets() 関数をインポートするにはどうすればよいですか

Holt-Winters 指数平滑化のパラメーターを推定したいと思います。R には、モデル パラメーターを推定する ets() 関数が用意されていることがわかりました。Jupyter ノートブックで Python を使用しています。この関数を R からインポートする方法があるかどうかを知る必要があります。