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

Method Load

catboost/libs/model/ctr_data.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void TCtrData::Load(IInputStream* s) {
24 const size_t cnt = ::LoadSize(s);
25 LearnCtrs.reserve(cnt);
26
27 for (size_t i = 0; i != cnt; ++i) {
28 TCtrValueTable table;
29 table.Load(s);
30 TModelCtrBase ctrBase = table.ModelCtrBase;
31 LearnCtrs[ctrBase] = std::move(table);
32 }
33}
34
35void TCtrData::LoadNonOwning(TMemoryInput *in) {
36 const size_t cnt = ::LoadSize(in);

Callers

nothing calls this directly

Calls 3

LoadSizeFunction · 0.85
moveFunction · 0.50
reserveMethod · 0.45

Tested by

no test coverage detected