|
void | ThrowRuntimeError (string err, const char *file, int line) |
| prints error and throws an exception More...
|
|
void | ThrowInvalidArgument (string err, const char *file, int line) |
|
void | ThrowLengthError (string err, const char *file, int line) |
|
void | Warn (string err, const char *file, int line) |
| prints error to stderr and returns More...
|
|
void | my_handler (int s) |
| handle signals (ctr-c etc.) More...
|
|
void | printProgress (float percentage) |
| outputs a progress bar, filled according to More...
|
|
void | load_csv (const std::string &path, MatrixXf &X, VectorXf &y, vector< string > &names, vector< char > &dtypes, bool &binary_endpoint, char sep) |
| load csv file into matrix. More...
|
|
void | load_longitudinal (const std::string &path, std::map< string, std::pair< vector< ArrayXf >, vector< ArrayXf > > > &Z, char sep) |
| load longitudinal csv file into matrix. More...
|
|
void | load_partial_longitudinal (const std::string &path, std::map< string, std::pair< vector< ArrayXf >, vector< ArrayXf > > > &Z, char sep, const vector< int > &idx) |
| load partial longitudinal csv file into matrix according to idx vector More...
|
|
void | clean (ArrayXf &x) |
| limits node output to be between MIN_FLT and MAX_FLT More...
|
|
void | clean (VectorXf &x) |
|
std::string | ltrim (std::string str, const std::string &chars) |
|
std::string | rtrim (std::string str, const std::string &chars) |
|
std::string | trim (std::string str, const std::string &chars) |
|
vector< char > | find_dtypes (const MatrixXf &X) |
| determines data types of columns of matrix X. More...
|
|
float | median (const ArrayXf &v) |
| calculate median More...
|
|
int | argmiddle (vector< float > &v) |
| returns the (first) index of the element with the middlest value in v More...
|
|
float | variance (const ArrayXf &v, float mean) |
| calculate variance when mean provided More...
|
|
float | variance (const ArrayXf &v) |
| calculate variance More...
|
|
float | skew (const ArrayXf &v) |
| calculate skew More...
|
|
float | kurtosis (const ArrayXf &v) |
| calculate kurtosis More...
|
|
float | covariance (const ArrayXf &x, const ArrayXf &y) |
| covariance of x and y More...
|
|
float | slope (const ArrayXf &x, const ArrayXf &y) |
| slope of x/y More...
|
|
float | pearson_correlation (const ArrayXf &x, const ArrayXf &y) |
| the normalized covariance of x and y More...
|
|
float | mad (const ArrayXf &x) |
| median absolute deviation More...
|
|
ArrayXb | isinf (const ArrayXf &x) |
| returns true for elements of x that are infinite More...
|
|
ArrayXb | isnan (const ArrayXf &x) |
| returns true for elements of x that are NaN More...
|
|
float | condition_number (const MatrixXf &X) |
| returns the condition number of a matrix. More...
|
|
MatrixXf | corrcoef (const MatrixXf &X) |
| returns the pearson correlation coefficients of matrix. More...
|
|
float | mean_square_corrcoef (const MatrixXf &X) |
|
std::string | ravel (const vector< string > &v, string sep=",") |
| takes a vector string and returns it as a delimited string. More...
|
|
template<typename T > |
bool | in (const vector< T > v, const T &i) |
| check if element is in vector. More...
|
|
template<typename T > |
vector< size_t > | argsort (const vector< T > &v, bool ascending=true) |
| return indices that sort a vector More...
|
|
template<typename T > |
vector< T > | softmax (const vector< T > &w) |
| return the softmax transformation of a vector. More...
|
|
template<typename T > |
vector< T > | unique (vector< T > w) |
| returns unique elements in vector More...
|
|
template<typename T > |
vector< T > | unique (Matrix< T, -1, -1 > w) |
| returns unique elements in Eigen matrix of variable rows/cols More...
|
|
template<typename T > |
vector< T > | unique (Matrix< T, -1, 1 > w) |
| returns unique elements in Eigen vector More...
|
|
template<typename T > |
vector< T > | unique (Array< T, -1, 1 > w) |
| returns unique elements in 1d Eigen array More...
|
|
| NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE (Log_Stats, generation, time, min_loss, min_loss_v, med_loss, med_loss_v, med_size, med_complexity, med_num_params, med_dim) |
|
template<typename T > |
std::string | to_string (const T &value) |
| template function to convert objects to string for logging More...
|
|
template<typename T > |
std::string | to_string (const T a_value, const int n) |
|
namespace containing various utility functions used in Feat