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

Function Solve

library/cpp/linear_regression/linear_regression.cpp:296–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 }
295
296 TVector<double> Solve(const TVector<double>& olsMatrix, const TVector<double>& olsVector) {
297 const size_t featuresCount = olsVector.size();
298
299 TVector<double> decompositionTrace(featuresCount);
300 TVector<TVector<double>> decompositionMatrix(featuresCount, TVector<double>(featuresCount));
301
302 LDLDecomposition(olsMatrix, decompositionTrace, decompositionMatrix);
303
304 return SolveUpper(decompositionMatrix, SolveLower(decompositionMatrix, decompositionTrace, olsVector));
305 }
306
307 double SumSquaredErrors(const TVector<double>& olsMatrix,
308 const TVector<double>& olsVector,

Callers 2

SolveMethod · 0.70
SumSquaredErrorsMethod · 0.70

Calls 4

LDLDecompositionFunction · 0.85
SolveUpperFunction · 0.85
SolveLowerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected