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

namespace containing various Evaluation classes used in Feat More...

Classes

class  Evaluation
 evaluation mixin class for Feat More...
 
class  Scorer
 scoring class for Feat More...
 

Typedefs

typedef float(* funcPointer) (const VectorXf &, const shared_ptr< CLabels > &, VectorXf &, const vector< float > &)
 

Functions

VectorXf squared_difference (const VectorXf &y, const VectorXf &yhat)
 
VectorXf squared_difference (const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &weights)
 
VectorXf d_squared_difference (const VectorXf &y, const VectorXf &yhat)
 
VectorXf d_squared_difference (const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &weights)
 
float mse (const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &weights)
 mean squared error More...
 
float mse_label (const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &weights)
 
VectorXf log_loss (const VectorXf &y, const VectorXf &yhat, const vector< float > &class_weights)
 
VectorXf log_loss (const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &class_weights)
 
float mean_log_loss (const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
 log loss More...
 
float log_loss_label (const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
 log loss More...
 
VectorXf d_log_loss (const VectorXf &y, const VectorXf &yhat, const vector< float > &class_weights)
 
VectorXf d_log_loss (const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &class_weights)
 
VectorXf multi_log_loss (const VectorXf &y, const ArrayXXf &confidences, const vector< float > &class_weights)
 multinomial log loss More...
 
float mean_multi_log_loss (const VectorXf &y, const ArrayXXf &confidences, VectorXf &loss, const vector< float > &class_weights)
 
float multi_log_loss_label (const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
 multinomial log loss More...
 
VectorXf multi_log_loss (const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &class_weights)
 
VectorXf d_multi_log_loss (const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &class_weights)
 derivative of multinomial log loss More...
 
float bal_zero_one_loss (const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
 1 - balanced accuracy More...
 
float bal_zero_one_loss_label (const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
 
float zero_one_loss (const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
 
float zero_one_loss_label (const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
 1 - accuracy More...
 
float false_positive_loss (const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
 
float false_positive_loss_label (const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
 false positive rate More...
 

Detailed Description

namespace containing various Evaluation classes used in Feat

Typedef Documentation

◆ funcPointer

typedef float(* FT::Eval::funcPointer) (const VectorXf &, const shared_ptr< CLabels > &, VectorXf &, const vector< float > &)

Definition at line 25 of file scorer.h.

Function Documentation

◆ bal_zero_one_loss()

float FT::Eval::bal_zero_one_loss ( const VectorXf &  y,
const VectorXf &  yhat,
VectorXf &  loss,
const vector< float > &  class_weights 
)

1 - balanced accuracy

Definition at line 366 of file metrics.cc.

◆ bal_zero_one_loss_label()

float FT::Eval::bal_zero_one_loss_label ( const VectorXf &  y,
const shared_ptr< CLabels > &  labels,
VectorXf &  loss,
const vector< float > &  class_weights 
)

Definition at line 412 of file metrics.cc.

◆ d_log_loss() [1/2]

VectorXf FT::Eval::d_log_loss ( const VectorXf &  y,
const VectorXf &  yhat,
const vector< float > &  class_weights 
)

Definition at line 159 of file metrics.cc.

◆ d_log_loss() [2/2]

VectorXf FT::Eval::d_log_loss ( const VectorXf &  y,
shared_ptr< CLabels > &  labels,
const vector< float > &  class_weights 
)

Definition at line 174 of file metrics.cc.

◆ d_multi_log_loss()

VectorXf FT::Eval::d_multi_log_loss ( const VectorXf &  y,
shared_ptr< CLabels > &  labels,
const vector< float > &  class_weights 
)

derivative of multinomial log loss

Definition at line 303 of file metrics.cc.

◆ d_squared_difference() [1/2]

VectorXf FT::Eval::d_squared_difference ( const VectorXf &  y,
const VectorXf &  yhat 
)

Definition at line 44 of file metrics.cc.

◆ d_squared_difference() [2/2]

VectorXf FT::Eval::d_squared_difference ( const VectorXf &  y,
shared_ptr< CLabels > &  labels,
const vector< float > &  weights 
)

Definition at line 50 of file metrics.cc.

◆ false_positive_loss()

float FT::Eval::false_positive_loss ( const VectorXf &  y,
const VectorXf &  yhat,
VectorXf &  loss,
const vector< float > &  class_weights 
)

Definition at line 457 of file metrics.cc.

◆ false_positive_loss_label()

float FT::Eval::false_positive_loss_label ( const VectorXf &  y,
const shared_ptr< CLabels > &  labels,
VectorXf &  loss,
const vector< float > &  class_weights 
)

false positive rate

Definition at line 468 of file metrics.cc.

◆ log_loss() [1/2]

VectorXf FT::Eval::log_loss ( const VectorXf &  y,
const VectorXf &  yhat,
const vector< float > &  class_weights 
)

Definition at line 88 of file metrics.cc.

◆ log_loss() [2/2]

VectorXf FT::Eval::log_loss ( const VectorXf &  y,
shared_ptr< CLabels > &  labels,
const vector< float > &  class_weights 
)

Definition at line 122 of file metrics.cc.

◆ log_loss_label()

float FT::Eval::log_loss_label ( const VectorXf &  y,
const shared_ptr< CLabels > &  labels,
VectorXf &  loss,
const vector< float > &  class_weights 
)

log loss

Definition at line 147 of file metrics.cc.

◆ mean_log_loss()

float FT::Eval::mean_log_loss ( const VectorXf &  y,
const VectorXf &  yhat,
VectorXf &  loss,
const vector< float > &  class_weights 
)

log loss

Definition at line 136 of file metrics.cc.

◆ mean_multi_log_loss()

float FT::Eval::mean_multi_log_loss ( const VectorXf &  y,
const ArrayXXf &  confidences,
VectorXf &  loss,
const vector< float > &  class_weights 
)

Definition at line 238 of file metrics.cc.

◆ mse()

float FT::Eval::mse ( const VectorXf &  y,
const VectorXf &  yhat,
VectorXf &  loss,
const vector< float > &  weights 
)

mean squared error

Definition at line 70 of file metrics.cc.

◆ mse_label()

float FT::Eval::mse_label ( const VectorXf &  y,
const shared_ptr< CLabels > &  labels,
VectorXf &  loss,
const vector< float > &  weights 
)

Definition at line 77 of file metrics.cc.

◆ multi_log_loss() [1/2]

VectorXf FT::Eval::multi_log_loss ( const VectorXf &  y,
const ArrayXXf &  confidences,
const vector< float > &  class_weights 
)

multinomial log loss

Definition at line 191 of file metrics.cc.

◆ multi_log_loss() [2/2]

VectorXf FT::Eval::multi_log_loss ( const VectorXf &  y,
shared_ptr< CLabels > &  labels,
const vector< float > &  class_weights 
)

Definition at line 283 of file metrics.cc.

◆ multi_log_loss_label()

float FT::Eval::multi_log_loss_label ( const VectorXf &  y,
const shared_ptr< CLabels > &  labels,
VectorXf &  loss,
const vector< float > &  class_weights 
)

multinomial log loss

Definition at line 250 of file metrics.cc.

◆ squared_difference() [1/2]

VectorXf FT::Eval::squared_difference ( const VectorXf &  y,
const VectorXf &  yhat 
)

Definition at line 18 of file metrics.cc.

◆ squared_difference() [2/2]

VectorXf FT::Eval::squared_difference ( const VectorXf &  y,
shared_ptr< CLabels > &  labels,
const vector< float > &  weights 
)

Definition at line 23 of file metrics.cc.

◆ zero_one_loss()

float FT::Eval::zero_one_loss ( const VectorXf &  y,
const VectorXf &  yhat,
VectorXf &  loss,
const vector< float > &  class_weights 
)

Definition at line 435 of file metrics.cc.

◆ zero_one_loss_label()

float FT::Eval::zero_one_loss_label ( const VectorXf &  y,
const shared_ptr< CLabels > &  labels,
VectorXf &  loss,
const vector< float > &  class_weights 
)

1 - accuracy

Definition at line 444 of file metrics.cc.