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

Method GetTarget

catboost/libs/data/target.h:304–311  ·  view source on GitHub ↗

after preprocessing - enumerating labels if necessary, etc.

Source from the content-addressed store, hash-verified

302
303 // after preprocessing - enumerating labels if necessary, etc.
304 TMaybeData<TConstArrayRef<TConstArrayRef<float>>> GetTarget(const TString& name = "") const { // [targetIdx][objectIdx]
305 const auto targetPtr = MapFindPtr(TargetViews, name);
306 if (targetPtr && !targetPtr->empty()) {
307 return TConstArrayRef<TConstArrayRef<float>>(*targetPtr);
308 } else {
309 return Nothing();
310 }
311 }
312
313 TMaybeData<TConstArrayRef<float>> GetOneDimensionalTarget(const TString& name = "") const { // [targetIdx][objectIdx]
314 const auto target = GetTarget(name);

Callers 15

InitializeColumnWriterFunction · 0.45
UpdateMetaInfoMethod · 0.45
Y_UNIT_TESTFunction · 0.45
TrainModelMethod · 0.45
GetLabelsMethod · 0.45
BuildDataSetMethod · 0.45
BuildCtrTargetMethod · 0.45
BuildDataSetMethod · 0.45
EstimatePriorsFunction · 0.45
TrainModelMethod · 0.45
TPermutationDerCalcerMethod · 0.45

Calls 3

MapFindPtrFunction · 0.85
NothingFunction · 0.85
emptyMethod · 0.45

Tested by 1