PySide (Qt for Python) は、Qt(キュート)の Python バインディングで、GUI などを構築するためのクロスプラットフォームなライブラリです。Linux/X11, macOS および Microsoft Windows をサポートしています。配布ライセンスは LGPL で公開されています。
model = sm.tsa.UnobservedComponents(
df,
level='local linear trend',
seasonal=12,
)
results = model.fit()
RUNNING THE L-BFGS-B CODE
* * *
Machine precision = 2.220D-16
N = 4 M = 10
At X0 0 variables are exactly at the bounds
At iterate 0 f= 3.80232D+00 |proj g|= 8.88849D-02
At iterate 5 f= 2.31489D+00 |proj g|= 8.31771D-01
ys=-1.847E+00 -gs= 2.050E-01 BFGS update SKIPPED
At iterate 10 f= 4.99810D-01 |proj g|= 1.27619D+00
This problem is unconstrained.
At iterate 15 f= 3.45421D-01 |proj g|= 3.76042D-01
At iterate 20 f= 2.46012D-01 |proj g|= 8.57193D-02
At iterate 25 f= 2.45718D-01 |proj g|= 1.68724D-02
* * *
Tit = total number of iterations
Tnf = total number of function evaluations
Tnint = total number of segments explored during Cauchy searches
Skip = number of BFGS updates skipped
Nact = number of active bounds at final generalized Cauchy point
Projg = norm of the final projected gradient
F = final function value
* * *
N Tit Tnf Tnint Skip Nact Projg F
4 27 76 1 1 0 3.247D-03 2.457D-01
F = 0.24571746957084589
CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH
フィッティング結果のサマリーを表示できますが、経験不足で詳細を評価できません。
results.summary()
解析で分離した成分のプロットをします。
out = results.plot_components(figsize=(12, 20))
# plt.savefig('trend_analysis_08/fig-002.png')