Feat C++ API
A feature engineering automation tool
FT::Eval::Scorer Class Reference

scoring class for Feat More...

#include <scorer.h>

Collaboration diagram for FT::Eval::Scorer:

Public Member Functions

 Scorer (string scorer="")
 
void set_scorer (string scorer)
 
float score (const VectorXf &y_true, const shared_ptr< CLabels > &yhat, VectorXf &loss, const vector< float > &w)
 
float score (const VectorXf &y_true, const shared_ptr< CLabels > &yhat, vector< float > w=vector< float >())
 

Public Attributes

std::map< string, funcPointerscore_hash
 
string scorer
 

Detailed Description

scoring class for Feat

Definition at line 30 of file scorer.h.

Constructor & Destructor Documentation

◆ Scorer()

FT::Eval::Scorer::Scorer ( string  scorer = "")

Definition at line 25 of file scorer.cc.

Member Function Documentation

◆ score() [1/2]

float FT::Eval::Scorer::score ( const VectorXf &  y_true,
const shared_ptr< CLabels > &  yhat,
vector< float >  w = vector<float>() 
)

Definition at line 60 of file scorer.cc.

◆ score() [2/2]

float FT::Eval::Scorer::score ( const VectorXf &  y_true,
const shared_ptr< CLabels > &  yhat,
VectorXf &  loss,
const vector< float > &  w 
)

Definition at line 41 of file scorer.cc.

◆ set_scorer()

void FT::Eval::Scorer::set_scorer ( string  scorer)

Definition at line 36 of file scorer.cc.

Member Data Documentation

◆ score_hash

std::map<string, funcPointer> FT::Eval::Scorer::score_hash

Definition at line 39 of file scorer.h.

◆ scorer

string FT::Eval::Scorer::scorer

Definition at line 53 of file scorer.h.


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