| 114 | } |
| 115 | |
| 116 | TLinearModel TFastLinearRegressionSolver::Solve() const { |
| 117 | TVector<double> coefficients = ::Solve(LinearizedOLSMatrix, OLSVector); |
| 118 | double intercept = 0.; |
| 119 | |
| 120 | if (!coefficients.empty()) { |
| 121 | intercept = coefficients.back(); |
| 122 | coefficients.pop_back(); |
| 123 | } |
| 124 | |
| 125 | return TLinearModel(std::move(coefficients), intercept); |
| 126 | } |
| 127 | |
| 128 | TLinearModel TLinearRegressionSolver::Solve() const { |
| 129 | TVector<double> coefficients = ::Solve(LinearizedOLSMatrix, OLSVector); |
no test coverage detected