MCPcopy Create free account
hub / github.com/catboost/catboost / Solve

Method Solve

library/cpp/linear_regression/linear_regression.cpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116TLinearModel 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
128TLinearModel TLinearRegressionSolver::Solve() const {
129 TVector<double> coefficients = ::Solve(LinearizedOLSMatrix, OLSVector);

Callers 7

MakeUnimodalFunction · 0.45
SLRTestFunction · 0.45
LinearRegressionTestFunction · 0.45
TransformationTestFunction · 0.45
QualityBenchmarkFunction · 0.45
SpeedBenchmarkFunction · 0.45
CalcModelFunction · 0.45

Calls 11

TLinearModelClass · 0.85
ArgMinPreciseFunction · 0.85
TransformationMethod · 0.80
SolveFunction · 0.70
moveFunction · 0.50
emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected