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

Method GetView

include/xgboost/data.h:378–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 using Inst = common::Span<Entry const>;
377
378 [[nodiscard]] HostSparsePageView GetView() const {
379 return {offset.ConstHostSpan(), data.ConstHostSpan()};
380 }
381
382 /*! \brief constructor */
383 SparsePage() { this->Clear(); }

Callers 15

GetTransposeMethod · 0.95
GetGradientFunction · 0.80
GetGradientParallelFunction · 0.80
UpdateResidualParallelFunction · 0.80
NextFeatureMethod · 0.80
SetupMethod · 0.80
UpdateMethod · 0.80
XGDMatrixGetDataAsCSRFunction · 0.80
PushBatchMethod · 0.80
SliceMethod · 0.80
SliceColMethod · 0.80
ForEachBatchMethod · 0.80

Calls 1

ConstHostSpanMethod · 0.80

Tested by 12

VerifyLoadUriFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TestSparsePredictionFunction · 0.64
CollectWeightedColumnsFunction · 0.64
TESTFunction · 0.64
TestLeafPartitionFunction · 0.64
TestExternalMemoryFunction · 0.64