Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
执行简单(一维)线性回归。
simpleLinearRegression(x, y)
x
Float64
y
y = k*x + b
(k, b)
Tuple(Float64, Float64)
SELECT arrayReduce('simpleLinearRegression', [0, 1, 2, 3], [0, 1, 2, 3]);
┌─arrayReduce('simpleLinearRegression', [0, 1, 2, 3], [0, 1, 2, 3])─┐ ├───────────────────────────────k─┬───────────────────────────────b─┤ │ 1 │ 0 │ └─────────────────────────────────┴─────────────────────────────────┘
SELECT arrayReduce('simpleLinearRegression', [0, 1, 2, 3], [3, 4, 5, 6]);
┌─arrayReduce('simpleLinearRegression', [0, 1, 2, 3], [3, 4, 5, 6])─┐ ├───────────────────────────────k─┬───────────────────────────────b─┤ │ 1 │ 3 │ └─────────────────────────────────┴─────────────────────────────────┘
此页面对您有帮助吗?