Medial Code Documentation
Loading...
Searching...
No Matches
xgboost::MetricReg Struct Reference

Registry entry for Metric factory functions. The additional parameter const char* param gives the value after @, can be null. For example, metric map@3, then: param == "3". More...

#include <metric.h>

Inheritance diagram for xgboost::MetricReg:
dmlc::FunctionRegEntryBase< MetricReg, std::function< Metric *(const char *)> >

Additional Inherited Members

- Public Member Functions inherited from dmlc::FunctionRegEntryBase< MetricReg, std::function< Metric *(const char *)> >
MetricReg & set_body (std::function< Metric *(const char *)> body)
 Set the function body.
 
MetricReg & describe (const std::string &description)
 Describe the function.
 
MetricReg & add_argument (const std::string &name, const std::string &type, const std::string &description)
 Add argument information to the function.
 
MetricReg & add_arguments (const std::vector< ParamFieldInfo > &args)
 Append list if arguments to the end.
 
MetricReg & set_return_type (const std::string &type)
 Set the return type.
 
- Data Fields inherited from dmlc::FunctionRegEntryBase< MetricReg, std::function< Metric *(const char *)> >
std::string name
 name of the entry
 
std::string description
 description of the entry
 
std::vector< ParamFieldInfo > arguments
 additional arguments to the factory function
 
std::function< Metric *(const char *)> body
 Function body to create ProductType.
 
std::string return_type
 Return type of the function.
 
- Protected Member Functions inherited from dmlc::FunctionRegEntryBase< MetricReg, std::function< Metric *(const char *)> >
MetricReg & self ()
 

Detailed Description

Registry entry for Metric factory functions. The additional parameter const char* param gives the value after @, can be null. For example, metric map@3, then: param == "3".


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