Feat C++ API
A feature engineering automation tool
|
evaluation mixin class for Feat More...
#include <evaluation.h>
Public Member Functions | |
Evaluation (string scorer="") | |
~Evaluation () | |
void | validation (vector< Individual > &individuals, const Data &d, const Parameters ¶ms, bool offspring=false) |
validation of population. More... | |
void | fitness (vector< Individual > &individuals, const Data &d, const Parameters ¶ms, 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 ¶ms, bool val=false) |
assign fitness to an individual. More... | |
Public Attributes | |
Scorer | S |
evaluation mixin class for Feat
Definition at line 33 of file evaluation.h.
FT::Eval::Evaluation::Evaluation | ( | string | scorer = "" | ) |
Definition at line 15 of file evaluation.cc.
FT::Eval::Evaluation::~Evaluation | ( | ) |
Definition at line 20 of file evaluation.cc.
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.
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.
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.
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.
Scorer FT::Eval::Evaluation::S |
Definition at line 74 of file evaluation.h.