aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/linear_regression/linear_model.h
diff options
context:
space:
mode:
authorvnik <vnik@yandex-team.ru>2022-02-10 16:50:11 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:11 +0300
commit82dd4d47353b9ff187773dd251163024db870e2a (patch)
treed4d7ebc620a32552f7446d9c20f1f83f3e3dcc57 /library/cpp/linear_regression/linear_model.h
parentcf62db3a461da3c6fdd693fb4cfada80d16031f2 (diff)
downloadydb-82dd4d47353b9ff187773dd251163024db870e2a.tar.gz
Restoring authorship annotation for <vnik@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/linear_regression/linear_model.h')
-rw-r--r--library/cpp/linear_regression/linear_model.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/linear_regression/linear_model.h b/library/cpp/linear_regression/linear_model.h
index 8bb050cff7..649ccd6988 100644
--- a/library/cpp/linear_regression/linear_model.h
+++ b/library/cpp/linear_regression/linear_model.h
@@ -7,7 +7,7 @@
#include <utility>
-class TLinearModel {
+class TLinearModel {
private:
TVector<double> Coefficients;
double Intercept;
@@ -30,11 +30,11 @@ public:
const TVector<double>& GetCoefficients() const {
return Coefficients;
}
-
+
double GetIntercept() const {
return Intercept;
}
-
+
template <typename T>
double Prediction(const TVector<T>& features) const {
return InnerProduct(Coefficients, features, Intercept);