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

Method GetOneHotFeatures

catboost/private/libs/algo/split.h:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548 }
549
550 TVector<TOneHotSplit> GetOneHotFeatures() const {
551 TVector<TOneHotSplit> result;
552 for (const auto& split : Splits) {
553 if (split.Type == ESplitType::OneHotFeature) {
554 result.push_back(TOneHotSplit{split.FeatureIdx, split.BinBorder});
555 }
556 }
557 return result;
558 }
559
560 TVector<TCtr> GetUsedCtrs() const {
561 TVector<TCtr> result;

Callers 5

AddTreeCtrsFunction · 0.45
CalcCoreModelCheckSumFunction · 0.45
GetOneHotFeatureFlatNumFunction · 0.45
GetCatFeaturePerfectHashFunction · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected