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

Method Get

catboost/libs/fstr/sage_values.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 FullSubsetIndexingPtrWrapper() = default;
35
36 TAtomicSharedPtr<TArraySubsetIndexing<ui32>> Get(ui32 objectsCount) {
37 CB_ENSURE_INTERNAL(objectsCount, "Size of TArraySubsetIndexing should be greater than 0");
38 if (auto fullSubsetIndexingPtr = VSubsetIndexing[objectsCount]) {
39 return fullSubsetIndexingPtr;
40 }
41 return VSubsetIndexing[objectsCount] =
42 MakeAtomicShared<TArraySubsetIndexing<ui32>>(TFullSubset<ui32>{objectsCount});
43 }
44
45private:
46 TMap<ui32, TAtomicSharedPtr<TArraySubsetIndexing<ui32>>> VSubsetIndexing;

Callers 15

MarginalImputerMethod · 0.45
ImputeInplaceMethod · 0.45
GetRandomDatasetBatchFunction · 0.45
GetFeatureImportancesFunction · 0.45
CalcLeafIndicesFunction · 0.45
IsMultiClassificationFunction · 0.45
GetPredictionDiffFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected