注: 以下の翻訳の正確性は検証されていません。AIPを利用して英語版の原文から機械的に翻訳されたものです。
単一の時系列の多項式回帰を計算する関数を返します。
多項式回帰は、入力時系列の点に最もよく適合する、指定された次数の多項式曲線のパラメーターを求めます。
多項式は y = a0 + a1*x + a2*x^2 + ... + an*x^n と表され、
係数 a0, a1, ..., an は回帰によって決まります。
多項式回帰は、変数間の関係が単純な線形関係よりも複雑な場合に役立ちます。
FunctionNode) -> SummarizerNode| 列名 | データ型 | 説明 |
|---|---|---|
| max_bounds.first_value | Float | 1番目の係数(a0)の最大値です。 |
| max_bounds.second_value | Float | 2番目の係数(a1)の最大値です。 |
| min_bounds.first_value | Float | 1番目の係数(a0)の最小値です。 |
| min_bounds.second_value | Float | 2番目の係数(a1)の最小値です。 |
| regression_fit_function. polynomial_regression_fit. coefficients.coefficient | Float | 多項式回帰による適合の 係数値です。 |
| regression_fit_function. polynomial_regression_fit. coefficients.degree | int | 各係数に対応する 多項式の次数です。 |
この関数は数値時系列にのみ適用できます。
Copied!1 2 3 4 5 6 7 8 9 10>>> series = F.points( ... (10, 6.0), (20, 12.0), (30, 24.0), (40, 48.0), (50, 96.0), name="series" ... ) >>> series.to_pandas() timestamp value 0 1970-01-01 00:00:00.000000010 6.0 1 1970-01-01 00:00:00.000000020 12.0 2 1970-01-01 00:00:00.000000030 24.0 3 1970-01-01 00:00:00.000000040 48.0 4 1970-01-01 00:00:00.000000050 96.0
Copied!1 2 3 4 5 6 7>>> poly_regr = F.polynomial_regression(3)(series) >>> poly_regr.to_pandas() max_bounds.first_value max_bounds.second_value min_bounds.first_value min_bounds.second_value regression_fit_function.polynomial_regression_fit.coefficients.coefficient regression_fit_function.polynomial_regression_fit.coefficients.degree 0 50.0 96.0 10.0 6.0 -4.800000 0 1 50.0 96.0 10.0 6.0 1.585714 1 2 50.0 96.0 10.0 6.0 -0.066429 2 3 50.0 96.0 10.0 6.0 0.001500 3