|
| 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 |
|
virtual double | Eval (HostDeviceVector< float > const &preds, MetaInfo const &info, std::shared_ptr< Cache > p_cache)=0 |
|
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
|
|
|
static Metric * | Create (const std::string &name, Context const *ctx) |
| create a metric according to name.
|
|
◆ Configure()
template<typename
Cache >
Configure the Metric with the specified parameters.
- Parameters
-
args | arguments to the objective function. |
Reimplemented from xgboost::Metric.
◆ Evaluate()
template<typename
Cache >
Evaluate a metric with DMatrix as input.
- Parameters
-
preds | Prediction |
p_fmat | DMatrix that contains related information like labels. |
Implements xgboost::Metric.
◆ LoadConfig()
template<typename
Cache >
Load configuration from JSON object.
- Parameters
-
in | JSON object containing the configuration |
Implements xgboost::Configurable.
◆ Name()
template<typename
Cache >
◆ SaveConfig()
template<typename
Cache >
Save configuration to JSON object.
- Parameters
-
out | pointer to output JSON object |
Implements xgboost::Configurable.
The documentation for this class was generated from the following file:
- External/xgboost/src/metric/rank_metric.cc