mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +01:00
Small cleanups.
This commit is contained in:
parent
6d5f66d9ff
commit
b9eda1bb2d
@ -8,7 +8,6 @@
|
||||
|
||||
#include "../activation/activation.h"
|
||||
#include "../cost/cost.h"
|
||||
#include "../lin_alg/lin_alg.h"
|
||||
#include "../regularization/reg.h"
|
||||
#include "../utilities/utilities.h"
|
||||
|
||||
|
@ -5,8 +5,6 @@
|
||||
//
|
||||
|
||||
#include "uni_lin_reg.h"
|
||||
|
||||
#include "../lin_alg/lin_alg.h"
|
||||
#include "../stat/stat.h"
|
||||
|
||||
// General Multivariate Linear Regression Model
|
||||
@ -53,9 +51,7 @@ void MLPPUniLinReg::train() {
|
||||
}
|
||||
|
||||
Ref<MLPPVector> MLPPUniLinReg::model_set_test(const Ref<MLPPVector> &x) {
|
||||
MLPPLinAlg alg;
|
||||
|
||||
return alg.scalar_addnv(_b0, alg.scalar_multiplynv(_b1, x));
|
||||
return x->scalar_multiplyn(_b1)->scalar_addn(_b0);
|
||||
}
|
||||
|
||||
real_t MLPPUniLinReg::model_test(real_t x) {
|
||||
|
Loading…
Reference in New Issue
Block a user