MCPcopy Create free account
hub / github.com/dmlc/parameter_server / info

Method info

src/data/info_parser.cc:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36ExampleInfo InfoParser::info() {
37 info_.set_num_ex(num_ex_);
38 info_.clear_slot();
39 for (int i = 0; i < kSlotIDmax; ++i) {
40 auto &sinfo = slot_info_[i];
41 if (!sinfo.nnz_ele()) continue;
42 sinfo.set_id(i);
43 if (i == 0) { // the label
44 sinfo.set_min_key(0);
45 sinfo.set_max_key(1);
46 }
47 *info_.add_slot() = sinfo;
48 }
49 return info_;
50}
51} // namespace PS

Callers 4

fillMatricesMethod · 0.45
readOneFileMethod · 0.45
TESTFunction · 0.45
remapIndexMethod · 0.45

Calls 7

set_num_exMethod · 0.80
clear_slotMethod · 0.80
nnz_eleMethod · 0.80
set_min_keyMethod · 0.80
set_max_keyMethod · 0.80
add_slotMethod · 0.80
set_idMethod · 0.45

Tested by 1

TESTFunction · 0.36