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

Function BuildWeights

catboost/private/libs/algo/plot.cpp:336–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336static TVector<float> BuildWeights(const TVector<TProcessedDataProvider>& datasetParts) {
337 TVector<float> result;
338 result.reserve(GetDocCount(datasetParts));
339 for (const auto& datasetPart : datasetParts) {
340 const auto weights = GetWeights(*datasetPart.TargetData);
341 result.insert(result.end(), weights.begin(), weights.end());
342 }
343 return result;
344}
345
346static TVector<ui32> GetStartDocIdx(const TVector<TProcessedDataProvider>& datasetParts) {
347 TVector<ui32> result;

Callers 1

Calls 6

GetDocCountFunction · 0.85
GetWeightsFunction · 0.50
reserveMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected