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

Function IsConstTarget

catboost/libs/train_lib/options_helper.cpp:305–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305static bool IsConstTarget(const NCB::TDataMetaInfo& dataMetaInfo) {
306 return dataMetaInfo.TargetStats.Defined() && dataMetaInfo.TargetStats->MinValue == dataMetaInfo.TargetStats->MaxValue;
307}
308
309static void UpdateAndValidateMonotoneConstraints(
310 const NCB::TFeaturesLayout& featuresLayout,

Callers 1

SetDataDependentDefaultsFunction · 0.85

Calls 1

DefinedMethod · 0.45

Tested by

no test coverage detected