Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1/* Brush
2copyright 2020 William La Cava
3license: 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
19using namespace Eigen;
20
21namespace Brush::Data
22{
23
25Dataset read_csv (
26 const std::string& path,
27 const std::string& target,
28 char sep=','
29);
30
31// /// load longitudinal csv file into matrix.
32// void load_longitudinal(const std::string & path,
33// std::map<string, std::pair<vector<ArrayXf>, vector<ArrayXf> > > &Z,
34// char sep=',');
35
36// /// load partial longitudinal csv file into matrix according to idx vector
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 bind_engine(py::module &m, string name)
namespace containing Data structures used in Brush
Definition data.cpp:49
Dataset read_csv(const std::string &path, const std::string &target, char sep)
read csv file into Data.
Definition io.cpp:14