MCPcopy Create free account
hub / github.com/dmlc/xgboost / Recode

Method Recode

tests/cpp/encoder/test_ordinal.cc:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20class OrdRecoderTest {
21 public:
22 void Recode(HostColumnsView orig_enc, HostColumnsView new_enc, Span<std::int32_t> mapping) {
23 std::vector<std::int32_t> sorted_idx(orig_enc.n_total_cats);
24 SortNames(DftHostPolicy{}, orig_enc, sorted_idx);
25 ::enc::Recode(DftHostPolicy{}, orig_enc, sorted_idx, new_enc, mapping);
26 }
27};
28} // namespace
29

Callers 4

TestOrdinalEncoderStrsFunction · 0.80
TestOrdinalEncoderIntsFunction · 0.80
TestOrdinalEncoderMixedFunction · 0.80
TestOrdinalEncoderEmptyFunction · 0.80

Calls 2

SortNamesFunction · 0.85
RecodeFunction · 0.85

Tested by

no test coverage detected