Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost::metric::EvalPrecision Class Reference
Inheritance diagram for xgboost::metric::EvalPrecision:
xgboost::metric::EvalRankWithCache< ltr::PreCache > xgboost::Metric xgboost::Configurable

Public Member Functions

double Eval (HostDeviceVector< float > const &predt, MetaInfo const &info, std::shared_ptr< ltr::PreCache > p_cache) final
 
 EvalRankWithCache (StringView name, const char *param)
 
- Public Member Functions inherited from xgboost::metric::EvalRankWithCache< ltr::PreCache >
 EvalRankWithCache (StringView name, const char *param)
 
void Configure (Args const &) override
 Configure the Metric with the specified parameters.
 
void LoadConfig (Json const &in) override
 Load configuration from JSON object.
 
void SaveConfig (Json *p_out) const override
 Save configuration to JSON object.
 
double Evaluate (HostDeviceVector< float > const &preds, std::shared_ptr< DMatrix > p_fmat) override
 Evaluate a metric with DMatrix as input.
 
const char * Name () const override
 
- Public Member Functions inherited from xgboost::Metric
void LoadConfig (Json const &) override
 Load configuration from JSON object By default, metric has no internal configuration; override this function to maintain internal configuration.
 
void SaveConfig (Json *p_out) const override
 Save configuration to JSON object By default, metric has no internal configuration; override this function to maintain internal configuration.
 
 ~Metric () override=default
 virtual destructor
 

Additional Inherited Members

- Static Public Member Functions inherited from xgboost::Metric
static MetricCreate (const std::string &name, Context const *ctx)
 create a metric according to name.
 
- Protected Attributes inherited from xgboost::metric::EvalRankWithCache< ltr::PreCache >
ltr::LambdaRankParam param_
 
bool minus_
 
std::string name_
 
DMatrixCache< ltr::PreCachecache_
 
- Protected Attributes inherited from xgboost::Metric
Context const * ctx_ {nullptr}
 

Member Function Documentation

◆ Eval()

double xgboost::metric::EvalPrecision::Eval ( HostDeviceVector< float > const &  predt,
MetaInfo const &  info,
std::shared_ptr< ltr::PreCache p_cache 
)
inlinefinalvirtual

The documentation for this class was generated from the following file: