diff options
author | a-romanov <a-romanov@yandex-team.ru> | 2022-02-10 16:48:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:10 +0300 |
commit | aa2986a34bde73b2cdcea5080c4443b7cf2ba686 (patch) | |
tree | 410fbde59311309b774a0da147f79628c3429a2c /library/cpp/linear_regression | |
parent | e77cfd118321c5b9c168fdee41b4e6c5706b8f68 (diff) | |
download | ydb-aa2986a34bde73b2cdcea5080c4443b7cf2ba686.tar.gz |
Restoring authorship annotation for <a-romanov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/linear_regression')
-rw-r--r-- | library/cpp/linear_regression/linear_regression.cpp | 6 | ||||
-rw-r--r-- | library/cpp/linear_regression/linear_regression.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/linear_regression/linear_regression.cpp b/library/cpp/linear_regression/linear_regression.cpp index 150f9d214e..6cbbef6f56 100644 --- a/library/cpp/linear_regression/linear_regression.cpp +++ b/library/cpp/linear_regression/linear_regression.cpp @@ -9,7 +9,7 @@ #endif #include <algorithm> -#include <functional> +#include <functional> namespace { inline void AddFeaturesProduct(const double weight, const TVector<double>& features, TVector<double>& linearizedOLSTriangleMatrix); @@ -122,7 +122,7 @@ TLinearModel TFastLinearRegressionSolver::Solve() const { coefficients.pop_back(); } - return TLinearModel(std::move(coefficients), intercept); + return TLinearModel(std::move(coefficients), intercept); } TLinearModel TLinearRegressionSolver::Solve() const { @@ -134,7 +134,7 @@ TLinearModel TLinearRegressionSolver::Solve() const { intercept -= FeatureMeans[featureNumber] * coefficients[featureNumber]; } - return TLinearModel(std::move(coefficients), intercept); + return TLinearModel(std::move(coefficients), intercept); } double TFastLinearRegressionSolver::SumSquaredErrors() const { diff --git a/library/cpp/linear_regression/linear_regression.h b/library/cpp/linear_regression/linear_regression.h index e57de5ff6c..85da62e6dd 100644 --- a/library/cpp/linear_regression/linear_regression.h +++ b/library/cpp/linear_regression/linear_regression.h @@ -206,7 +206,7 @@ public: bestSolver->Solve(coefficients[bestSolver - SLRSolvers.begin()], intercept, regularizationParameter); } - TLinearModel model(std::move(coefficients), intercept); + TLinearModel model(std::move(coefficients), intercept); return model; } |