Feat C++ API
A feature engineering automation tool
FT::Opt::HillClimb Class Reference

#include <hillclimb.h>

Collaboration diagram for FT::Opt::HillClimb:

Public Types

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

Public Member Functions

 HillClimb (string scorer, int iters=1, float step=0.1)
 
shared_ptr< CLabels > run (Individual &ind, Data d, const Parameters &params, bool &updated)
 adapt weights More...
 

Public Attributes

std::map< string, callbackscore_hash
 

Private Attributes

callback cost_func
 
int iters
 
float step
 

Detailed Description

Definition at line 32 of file hillclimb.h.

Member Typedef Documentation

◆ callback

typedef VectorXf(* FT::Opt::HillClimb::callback) (const VectorXf &, shared_ptr< CLabels > &, const vector< float > &)

Definition at line 38 of file hillclimb.h.

Constructor & Destructor Documentation

◆ HillClimb()

FT::Opt::HillClimb::HillClimb ( string  scorer,
int  iters = 1,
float  step = 0.1 
)

Definition at line 14 of file hillclimb.cc.

Member Function Documentation

◆ run()

shared_ptr< CLabels > FT::Opt::HillClimb::run ( Individual ind,
Data  d,
const Parameters params,
bool &  updated 
)

adapt weights

Definition at line 27 of file hillclimb.cc.

Member Data Documentation

◆ cost_func

callback FT::Opt::HillClimb::cost_func
private

Definition at line 49 of file hillclimb.h.

◆ iters

int FT::Opt::HillClimb::iters
private

Definition at line 50 of file hillclimb.h.

◆ score_hash

std::map<string, callback> FT::Opt::HillClimb::score_hash

Definition at line 40 of file hillclimb.h.

◆ step

float FT::Opt::HillClimb::step
private

Definition at line 51 of file hillclimb.h.


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