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

Function ExactValues

tests/cpp/common/test_quantile.h:462–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460inline bool EmptyReference(ReferenceColumn const& col) { return col.values.empty(); }
461
462inline Span<float const> ExactValues(ReferenceColumn const& col) {
463 return {col.values.data(), col.values.size()};
464}
465
466inline std::size_t NonZeroWeightCount(GeneratedColumn const& col) {
467 return std::count_if(col.weights.cbegin(), col.weights.cend(),

Callers 1

TestSummaryInvariantsFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected