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

Method SetInfo

include/xgboost/data.h:583–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581 /** @brief meta information of the dataset */
582 [[nodiscard]] virtual MetaInfo& Info() = 0;
583 virtual void SetInfo(const char* key, std::string const& interface_str) {
584 auto const& ctx = *this->Ctx();
585 this->Info().SetInfo(ctx, key, StringView{interface_str});
586 }
587 /** @brief meta information of the dataset */
588 [[nodiscard]] virtual const MetaInfo& Info() const = 0;
589

Callers

nothing calls this directly

Calls 2

CtxMethod · 0.45
InfoMethod · 0.45

Tested by

no test coverage detected