From 63d8dbf6760dbc3ecd6b3f324456c88d7ffbb656 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 28 Apr 2023 19:28:53 +0200 Subject: [PATCH] Tweaks to MLPPUniLinReg. --- mlpp/uni_lin_reg/uni_lin_reg.cpp | 6 +++--- mlpp/uni_lin_reg/uni_lin_reg.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mlpp/uni_lin_reg/uni_lin_reg.cpp b/mlpp/uni_lin_reg/uni_lin_reg.cpp index 38f82cb..721d08a 100644 --- a/mlpp/uni_lin_reg/uni_lin_reg.cpp +++ b/mlpp/uni_lin_reg/uni_lin_reg.cpp @@ -43,7 +43,7 @@ void MLPPUniLinReg::set_b1(const real_t val) { _b1 = val; } -void MLPPUniLinReg::fit() { +void MLPPUniLinReg::train() { ERR_FAIL_COND(!_input_set.is_valid() || !_output_set.is_valid()); MLPPStat estimator; @@ -66,7 +66,7 @@ MLPPUniLinReg::MLPPUniLinReg(const Ref &p_input_set, const Ref get_input_set() const; @@ -31,7 +31,7 @@ public: real_t get_b1() const; void set_b1(const real_t val); - void fit(); + void train(); Ref model_set_test(const Ref &x); real_t model_test(real_t x);