instance structure for linear regression More...
#include <regress_linear.h>
Public Member Functions | |
void | init (a_float *p, a_size n, a_float b=0) |
a_float | eval (a_float const *val) const |
void | err (a_size n, a_float const *x, a_float const *y, a_float *err) const |
void | pdm (a_size n, a_float const *x, a_float *pdm, a_float y_mean) const |
void | gd (a_float const *input, a_float error, a_float alpha) |
void | sgd (a_size n, a_float const *x, a_float const *y, a_float alpha) |
void | bgd (a_size n, a_float const *x, a_float const *err, a_float alpha) |
a_float | mgd (a_size n, a_float const *x, a_float const *y, a_float *err, a_float delta, a_float lrmax, a_float lrmin, a_size lrtim, a_size epoch, a_size batch) |
void | zero () |
Data Fields | |
a_float * | coef_p |
a_size | coef_n |
a_float | bias |
instance structure for linear regression
a_float a_regress_linear::bias |
intercept
a_size a_regress_linear::coef_n |
number of regression coefficients
a_float* a_regress_linear::coef_p |
points to regression coefficients