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
19namespace Brush::Data
20{
21
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
holds variable type data.
Definition data.h:51
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