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

Method GetCatFeature

catboost/libs/data/objects.h:480–482  ·  view source on GitHub ↗

can return nullptr if this feature is unavailable * (ignored or this data provider contains only subset of features) */

Source from the content-addressed store, hash-verified

478 * (ignored or this data provider contains only subset of features)
479 */
480 TMaybeData<const THashedCatValuesHolder*> GetCatFeature(ui32 catFeatureIdx) const {
481 return MakeMaybeData<const THashedCatValuesHolder>(Data.CatFeatures[catFeatureIdx]);
482 }
483
484 void SetCatFeature(ui32 catFeatureIdx, THolder<THashedCatValuesHolder>&& newFeatureValues) {
485 Data.CatFeatures[catFeatureIdx] = std::move(newFeatureValues);

Callers 15

ComputeOnlineCTRsFunction · 0.45
BuildNodeSplitFunctionFunction · 0.45
AddFeatureMethod · 0.45
UpdateIndicesFunction · 0.45
CalcHashesFunction · 0.45
InitializeColumnWriterFunction · 0.45
MarginalImputerMethod · 0.45
ImputeInplaceMethod · 0.45
ProcessBlockMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestSubsetFeaturesFunction · 0.36
CheckDataSetFunction · 0.36
BuildTreeCtrSplitCpuMethod · 0.36
SplitMethod · 0.36