Feat C++ API
A feature engineering automation tool
utils.cc File Reference
#include "utils.h"
#include "rnd.h"
#include <unordered_set>
Include dependency graph for utils.cc:

Go to the source code of this file.

Namespaces

 FT
 main Feat namespace
 
 FT::Util
 namespace containing various utility functions used in Feat
 

Functions

void FT::Util::clean (ArrayXf &x)
 limits node output to be between MIN_FLT and MAX_FLT More...
 
void FT::Util::clean (VectorXf &x)
 
std::string FT::Util::ltrim (std::string str, const std::string &chars)
 
std::string FT::Util::rtrim (std::string str, const std::string &chars)
 
std::string FT::Util::trim (std::string str, const std::string &chars)
 
vector< char > FT::Util::find_dtypes (const MatrixXf &X)
 determines data types of columns of matrix X. More...
 
float FT::Util::median (const ArrayXf &v)
 calculate median More...
 
int FT::Util::argmiddle (vector< float > &v)
 returns the (first) index of the element with the middlest value in v More...
 
float FT::Util::variance (const ArrayXf &v, float mean)
 calculate variance when mean provided More...
 
float FT::Util::variance (const ArrayXf &v)
 calculate variance More...
 
float FT::Util::skew (const ArrayXf &v)
 calculate skew More...
 
float FT::Util::kurtosis (const ArrayXf &v)
 calculate kurtosis More...
 
float FT::Util::covariance (const ArrayXf &x, const ArrayXf &y)
 covariance of x and y More...
 
float FT::Util::slope (const ArrayXf &x, const ArrayXf &y)
 slope of x/y More...
 
float FT::Util::pearson_correlation (const ArrayXf &x, const ArrayXf &y)
 the normalized covariance of x and y More...
 
float FT::Util::mad (const ArrayXf &x)
 median absolute deviation More...
 
ArrayXb FT::Util::isinf (const ArrayXf &x)
 returns true for elements of x that are infinite More...
 
ArrayXb FT::Util::isnan (const ArrayXf &x)
 returns true for elements of x that are NaN More...
 
float FT::Util::condition_number (const MatrixXf &X)
 returns the condition number of a matrix. More...
 
MatrixXf FT::Util::corrcoef (const MatrixXf &X)
 returns the pearson correlation coefficients of matrix. More...
 
float FT::Util::mean_square_corrcoef (const MatrixXf &X)
 
std::string FT::Util::ravel (const vector< string > &v, string sep=",")
 takes a vector string and returns it as a delimited string. More...
 

Variables

string FT::Util::PBSTR = "===================="
 
int FT::Util::PBWIDTH = 20