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

Function ValidateFeaturesToEvaluate

catboost/libs/train_lib/train_model.cpp:1413–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411}
1412
1413static void ValidateFeaturesToEvaluate(const NJson::TJsonValue& trainOptionsJson, ui32 featureCount) {
1414 const auto maxFeatureToEvaluateIdx = GetOptionFeaturesToEvaluate(trainOptionsJson).back();
1415 CB_ENSURE(
1416 maxFeatureToEvaluateIdx < featureCount,
1417 "Feature index " << maxFeatureToEvaluateIdx << " is too large; dataset has only "
1418 << featureCount << " features");
1419}
1420
1421static void ModelBasedEval(
1422 const NJson::TJsonValue& trainOptionsJson,

Callers 1

ModelBasedEvalFunction · 0.85

Calls 2

backMethod · 0.45

Tested by

no test coverage detected