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

Method GetTargetClassCount

catboost/libs/data/target.h:298–301  ·  view source on GitHub ↗

if Target with name does not contain classes returns Nothing()

Source from the content-addressed store, hash-verified

296
297 // if Target with name does not contain classes returns Nothing()
298 TMaybeData<ui32> GetTargetClassCount(const TString& name = "") const {
299 auto* classCount = MapFindPtr(Data.TargetsClassCount, name);
300 return classCount ? TMaybeData<ui32>(*classCount) : Nothing();
301 }
302
303 // after preprocessing - enumerating labels if necessary, etc.
304 TMaybeData<TConstArrayRef<TConstArrayRef<float>>> GetTarget(const TString& name = "") const { // [targetIdx][objectIdx]

Callers 2

InitMethod · 0.80

Calls 2

MapFindPtrFunction · 0.85
NothingFunction · 0.85

Tested by

no test coverage detected