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

Method GetNewId

library/cpp/par/par_jobreq.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 ResArray->resize(0);
21 }
22 int GetNewId(int id) {
23 int res = NewId[id];
24 if (res == -1) {
25 res = ResArray->ysize();
26 NewId[id] = res;
27 ResArray->push_back(SrcArray[id]);
28 }
29 return res;
30 }
31 };
32
33 struct TParamsRemapper {

Callers 1

ProjectJobFunction · 0.45

Calls 2

ysizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected