Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost::MetricNoCache Class Referenceabstract
Inheritance diagram for xgboost::MetricNoCache:
xgboost::Metric xgboost::Configurable xgboost::metric::EvalAUC< EvalPRAUC > xgboost::metric::EvalAUC< EvalROCAUC > xgboost::metric::EvalAMS xgboost::metric::EvalAUC< Curve > xgboost::metric::EvalCox xgboost::metric::EvalRank xgboost::metric::EvalPRAUC xgboost::metric::EvalROCAUC

Public Member Functions

virtual double Eval (HostDeviceVector< float > const &predts, MetaInfo const &info)=0
 
double Evaluate (HostDeviceVector< float > const &predts, std::shared_ptr< DMatrix > p_fmat) final
 Evaluate a metric with DMatrix as input.
 
- Public Member Functions inherited from xgboost::Metric
virtual void Configure (const std::vector< std::pair< std::string, std::string > > &)
 Configure the Metric with the specified parameters.
 
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.
 
virtual const char * Name () const =0
 
 ~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
Context const * ctx_ {nullptr}
 

Member Function Documentation

◆ Evaluate()

double xgboost::MetricNoCache::Evaluate ( HostDeviceVector< float > const &  preds,
std::shared_ptr< DMatrix p_fmat 
)
inlinefinalvirtual

Evaluate a metric with DMatrix as input.

Parameters
predsPrediction
p_fmatDMatrix that contains related information like labels.

Implements xgboost::Metric.


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