interface of evaluation metric used to evaluate model performance. This has nothing to do with training, but merely act as evaluation purpose.
More...
#include <metric.h>
interface of evaluation metric used to evaluate model performance. This has nothing to do with training, but merely act as evaluation purpose.
◆ ~Metric()
virtual xgboost::Metric::~Metric |
( |
| ) |
|
|
virtualdefault |
◆ Configure() [1/2]
virtual void xgboost::Metric::Configure |
( |
const std::vector< std::pair< std::string, std::string > > & |
args | ) |
|
|
inlinevirtual |
Configure the Metric with the specified parameters.
- Parameters
-
args | arguments to the objective function. |
◆ Configure() [2/2]
template<typename PairIter >
void xgboost::Metric::Configure |
( |
PairIter |
begin, |
|
|
PairIter |
end |
|
) |
| |
|
inline |
set configuration from pair iterators.
- Parameters
-
begin | The beginning iterator. |
end | The end iterator. |
- Template Parameters
-
PairIter | iterator<std::pair<std::string, std::string> > |
◆ Create()
static Metric* xgboost::Metric::Create |
( |
const std::string & |
name | ) |
|
|
static |
create a metric according to name.
- Parameters
-
name | name of the metric. name can be in form metric[@]param and the name will be matched in the registry. |
- Returns
- the created metric.
◆ Eval()
evaluate a specific metric
- Parameters
-
preds | prediction |
info | information, including label etc. |
distributed | whether a call to Allreduce is needed to gather the average statistics across all the node, this is only supported by some metrics |
◆ Name()
virtual const char* xgboost::Metric::Name |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: