liba 0.1.15
An algorithm library based on C/C++
 
Loading...
Searching...
No Matches
a_regress_linear Struct Reference

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_floatcoef_p
 
a_size coef_n
 
a_float bias
 

Detailed Description

instance structure for linear regression

Field Documentation

◆ bias

a_float a_regress_linear::bias

intercept

◆ coef_n

a_size a_regress_linear::coef_n

number of regression coefficients

◆ coef_p

a_float* a_regress_linear::coef_p

points to regression coefficients


The documentation for this struct was generated from the following file: