diff options
author | a-romanov <a-romanov@yandex-team.ru> | 2022-02-10 16:48:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:11 +0300 |
commit | 0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/linear_regression/linear_regression.cpp | |
parent | aa2986a34bde73b2cdcea5080c4443b7cf2ba686 (diff) | |
download | ydb-0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435.tar.gz |
Restoring authorship annotation for <a-romanov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/linear_regression/linear_regression.cpp')
-rw-r--r-- | library/cpp/linear_regression/linear_regression.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/linear_regression/linear_regression.cpp b/library/cpp/linear_regression/linear_regression.cpp index 6cbbef6f56..150f9d214e 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 { |