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

Method GetEstimatorSourceFeatureIdx

catboost/libs/data/feature_estimators.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 TEstimatorSourceId TFeatureEstimators::GetEstimatorSourceFeatureIdx(const TGuid& guid) const {
50 CB_ENSURE(
51 EstimatorGuidToFlatId.contains(guid),
52 "There is no estimator with " << LabeledOutput(guid)
53 );
54 TEstimatorId estimatorId = EstimatorGuidToFlatId.at(guid);
55 return EstimatorToSourceFeatures.at(estimatorId);
56 }
57
58 TEstimatorSourceId TFeatureEstimators::GetEstimatorSourceFeatureIdx(TEstimatorId estimatorId) const {
59 return EstimatorToSourceFeatures.at(estimatorId);

Callers 6

AddFeatureEstimatorMethod · 0.80
AddFeatureEstimatorMethod · 0.80
GetModelSplitMethod · 0.80
CreateDataForTestFunction · 0.80

Calls 2

containsMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected