From 5bc56fc02fee5b638e26444afa2ceb02e1dbf2ea Mon Sep 17 00:00:00 2001 From: bjyb <1091839467@qq.com> Date: Thu, 21 Sep 2023 13:07:57 +0800 Subject: [PATCH] Update linregr.cpp --- src/gausskernel/dbmind/db4ai/executor/gd/linregr.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gausskernel/dbmind/db4ai/executor/gd/linregr.cpp b/src/gausskernel/dbmind/db4ai/executor/gd/linregr.cpp index 96e9f1ed3..c208bab2a 100644 --- a/src/gausskernel/dbmind/db4ai/executor/gd/linregr.cpp +++ b/src/gausskernel/dbmind/db4ai/executor/gd/linregr.cpp @@ -21,6 +21,15 @@ * --------------------------------------------------------------------------------------- */ +/*Linear regression is a regression analysis that uses the least square function called linear +regression equation to model the relationship between one or more independent variables and dependent +variables. Its expression form is y = w'x+e, where e is the normal distribution with the average value of 0. +In regression analysis, only one independent variable and one dependent variable are included, and the +relationship between them can be approximately expressed by a straight line. This regression analysis is +called unary linear regression analysis. If regression analysis includes two or more independent variables, +and there is a linear relationship between dependent variables and independent variables, it is called +multivariate linear regression analysis.*/ + #include "db4ai/gd.h" static void linear_reg_gradients(GradientsConfig *cfg)