Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1
/* Brush
2
copyright 2020 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
Brush::Data
22
{
23
25
Dataset
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
bind_engine
void bind_engine(py::module &m, string name)
Definition
bind_engines.h:35
data.h
error.h
init.h
Brush::Data
namespace containing Data structures used in Brush
Definition
data.cpp:49
Brush::Data::read_csv
Dataset read_csv(const std::string &path, const std::string &target, char sep)
read csv file into Data.
Definition
io.cpp:14
src
data
io.h
Generated by
1.10.0