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

evaluation mixin class for Feat More...

#include <evaluation.h>

Collaboration diagram for FT::Eval::Evaluation:

Public Member Functions

 Evaluation (string scorer="")
 
 ~Evaluation ()
 
void validation (vector< Individual > &individuals, const Data &d, const Parameters &params, bool offspring=false)
 validation of population. More...
 
void fitness (vector< Individual > &individuals, const Data &d, const Parameters &params, bool offspring=false)
 fitness of population. More...
 
float marginal_fairness (VectorXf &loss, const Data &d, float base_score, bool use_alpha=false)
 
void assign_fit (Individual &ind, const shared_ptr< CLabels > &yhat, const Data &d, const Parameters &params, bool val=false)
 assign fitness to an individual.
More...
 

Public Attributes

Scorer S
 

Detailed Description

evaluation mixin class for Feat

Definition at line 33 of file evaluation.h.

Constructor & Destructor Documentation

◆ Evaluation()

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

Definition at line 15 of file evaluation.cc.

◆ ~Evaluation()

FT::Eval::Evaluation::~Evaluation ( )

Definition at line 20 of file evaluation.cc.

Member Function Documentation

◆ assign_fit()

void FT::Eval::Evaluation::assign_fit ( Individual ind,
const shared_ptr< CLabels > &  yhat,
const Data d,
const Parameters params,
bool  val = false 
)

assign fitness to an individual.

assign raw errors and aggregate fitnesses to individuals.

Input:

 ind: individual 
 yhat: predicted output of ind
 d: data
 params: feat parameters

Output:

 modifies individual metrics

Definition at line 157 of file evaluation.cc.

◆ fitness()

void FT::Eval::Evaluation::fitness ( vector< Individual > &  individuals,
const Data d,
const Parameters params,
bool  offspring = false 
)

fitness of population.

 @param individuals: population
 @param d: Data structure
 @param params: algorithm parameters
 @param offspring: if true, only evaluate last half of population

Output

 individuals.fitness, yhat, error is modified

Definition at line 71 of file evaluation.cc.

◆ marginal_fairness()

float FT::Eval::Evaluation::marginal_fairness ( VectorXf &  loss,
const Data d,
float  base_score,
bool  use_alpha = false 
)

Definition at line 200 of file evaluation.cc.

◆ validation()

void FT::Eval::Evaluation::validation ( vector< Individual > &  individuals,
const Data d,
const Parameters params,
bool  offspring = false 
)

validation of population.

Definition at line 22 of file evaluation.cc.

Member Data Documentation

◆ S

Scorer FT::Eval::Evaluation::S

Definition at line 74 of file evaluation.h.


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