7#ifndef LIBA_REGRESS_LINEAR_H
8#define LIBA_REGRESS_LINEAR_H
20#if defined(__cplusplus)
181#if defined(__cplusplus)
197#if defined(__cplusplus)
249 return a_regress_linear_mgd1(
this, n, x, y, err, delta, lrmax, lrmin, lrtim, epoch, batch);
254 return a_regress_linear_mgd2(
this, n, x, y, err, delta, lrmax, lrmin, lrtim, epoch, batch);
#define a_float
Definition a.h:785
void a_regress_linear_sgd(a_regress_linear *ctx, double const *x, double y, double alpha)
stochastic gradient descent for linear regression
double a_regress_linear_eval(a_regress_linear const *ctx, double const *val)
calculate predicted value for linear regression
void a_regress_linear_pdm1(a_regress_linear const *ctx, size_t n, double const *x, double *pdm, double y_mean)
calculate prediction deviation from mean for linear regression
void a_regress_linear_bgd1(a_regress_linear *ctx, size_t n, double const *x, double const *err, double alpha)
batch gradient descent for linear regression
void a_regress_linear_sgd2(a_regress_linear *ctx, size_t n, double const *const *x, double const *y, double alpha)
stochastic gradient descent for linear regression
void a_regress_linear_bgd2(a_regress_linear *ctx, size_t n, double const *const *x, double const *err, double alpha)
batch gradient descent for linear regression
void a_regress_linear_init(a_regress_linear *ctx, double *coef_p, size_t coef_n, double bias)
initialize for linear regression
void a_regress_linear_zero(a_regress_linear *ctx)
zeroing for linear regression
void a_regress_linear_pdm2(a_regress_linear const *ctx, size_t n, double const *const *x, double *pdm, double y_mean)
calculate prediction deviation from mean for linear regression
void a_regress_linear_gd(a_regress_linear *ctx, double const *input, double error, double alpha)
gradient descent for linear regression
double a_regress_linear_mgd1(a_regress_linear *ctx, size_t n, double const *x, double const *y, double *err, double delta, double lrmax, double lrmin, size_t lrtim, size_t epoch, size_t batch)
mini-batch gradient descent for linear regression
void a_regress_linear_err1(a_regress_linear const *ctx, size_t n, double const *x, double const *y, double *err)
calculate residuals for linear regression
void a_regress_linear_err2(a_regress_linear const *ctx, size_t n, double const *const *x, double const *y, double *err)
calculate residuals for linear regression
void a_regress_linear_sgd1(a_regress_linear *ctx, size_t n, double const *x, double const *y, double alpha)
stochastic gradient descent for linear regression
double a_regress_linear_mgd2(a_regress_linear *ctx, size_t n, double const *const *x, double const *y, double *err, double delta, double lrmax, double lrmin, size_t lrtim, size_t epoch, size_t batch)
mini-batch gradient descent for linear regression
#define a_size
Definition a.h:610
instance structure for linear regression
Definition regress_linear.h:193