forked from huawei/openGauss-server
Update linregr.cpp
This commit is contained in:
parent
5a196e8096
commit
5bc56fc02f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue