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

Method GetFloatFeature

catboost/libs/data/objects.h:469–471  ·  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

467 * (ignored or this data provider contains only subset of features)
468 */
469 TMaybeData<const TFloatValuesHolder*> GetFloatFeature(ui32 floatFeatureIdx) const {
470 return MakeMaybeData<const TFloatValuesHolder>(Data.FloatFeatures[floatFeatureIdx]);
471 }
472
473 void SetFloatFeature(ui32 floatFeatureIdx, THolder<TFloatValuesHolder>&& newFeatureValues) {
474 Data.FloatFeatures[floatFeatureIdx] = std::move(newFeatureValues);

Callers 15

CalculateHistogramFunction · 0.45
BuildNodeSplitFunctionFunction · 0.45
AddFeatureMethod · 0.45
UpdateIndicesFunction · 0.45
CalcHashesFunction · 0.45
Y_UNIT_TESTFunction · 0.45
InitializeColumnWriterFunction · 0.45
MarginalImputerMethod · 0.45
ImputeInplaceMethod · 0.45

Calls

no outgoing calls

Tested by 4

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