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

Method MakeCache

include/xgboost/data.h:339–346  ·  view source on GitHub ↗

* @brief Make a copy of self for DMatrix to describe how its existing index was generated. */

Source from the content-addressed store, hash-verified

337 * @brief Make a copy of self for DMatrix to describe how its existing index was generated.
338 */
339 [[nodiscard]] BatchParam MakeCache() const {
340 auto p = *this;
341 // These parameters have nothing to do with how the gradient index was generated in the
342 // first place.
343 p.regen = false;
344 p.forbid_regen = false;
345 return p;
346 }
347};
348
349struct HostSparsePageView {

Callers 2

GetEllpackBatchesMethod · 0.80
GetGradientIndexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected