Brush C++ API
A flexible interpretable machine learning framework
Toggle main menu visibility
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
namespace
Brush::Data
20
{
21
23
Dataset
read_csv
(
24
const
std::string& path,
25
const
std::string& target,
26
char
sep=
','
27
);
28
29
// /// load longitudinal csv file into matrix.
30
// void load_longitudinal(const std::string & path,
31
// std::map<string, std::pair<vector<ArrayXf>, vector<ArrayXf> > > &Z,
32
// char sep=',');
33
34
// /// load partial longitudinal csv file into matrix according to idx vector
35
// void load_partial_longitudinal(const std::string & path,
36
// std::map<string, std::pair<vector<ArrayXf>, vector<ArrayXf> > > &Z,
37
// char sep, const vector<int>& idx);
38
// }
39
}
40
41
#endif
Brush::Data::Dataset
holds variable type data.
Definition
data.h:51
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.17.0