Feat C++ API
A feature engineering automation tool
io.h
Go to the documentation of this file.
1 /* FEAT
2 copyright 2017 William La Cava
3 license: GNU/GPL v3
4 */
5 
6 #ifndef IO_H
7 #define IO_H
8 
9 #include <Eigen/Dense>
10 #include <vector>
11 #include <fstream>
12 #include <chrono>
13 #include <ostream>
14 #include <map>
15 #include "../init.h"
16 #include "../util/error.h"
17 //#include "data.h"
18 
19 using namespace Eigen;
20 
21 namespace FT{
22 
23  namespace Util{
25  void printProgress (float percentage);
26 
28  void load_csv (const std::string & path, MatrixXf& X, VectorXf& y, vector<string>& names,
29  vector<char> &dtypes, bool& binary_endpoint, char sep=',');
30 
32  void load_longitudinal(const std::string & path,
33  std::map<string, std::pair<vector<ArrayXf>, vector<ArrayXf> > > &Z,
34  char sep=',');
35 
37  void load_partial_longitudinal(const std::string & path,
38  std::map<string, std::pair<vector<ArrayXf>, vector<ArrayXf> > > &Z,
39  char sep, const vector<int>& idx);
40  }
41 }
42 
43 #endif
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.
Definition: io.cc:100
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
Definition: io.cc:175
void printProgress(float percentage)
outputs a progress bar, filled according to
Definition: io.cc:15
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.
Definition: io.cc:27
main Feat namespace
Definition: data.cc:13