Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
omop.h
Go to the documentation of this file.
1
/* Brush
2
copyright 2022 William La Cava
3
license: GNU/GPL v3
4
*/
5
6
#ifndef OMOP_H
7
#define OMOP_H
8
9
// #include "../init.h"
10
#include <string>
11
#include <filesystem>
12
#include <fstream>
13
// #include "../../thirdparty/json.hpp"
14
#include "nlohmann/json.hpp"
15
16
namespace
fs
= std::filesystem;
17
18
namespace
Brush::Data
19
{
20
21
22
enum class
TimeValues
{
23
offset
,
24
delta
,
25
timestamp
26
};
27
28
enum class
StringFeatures
{
29
categorical
,
30
onehot
31
};
32
33
struct
OmopData
34
{
35
std::string
cdm_version
;
36
TimeValues
tv
=
TimeValues::timestamp
;
37
StringFeatures
sf
=
StringFeatures::categorical
;
38
40
OmopData
(fs::directory_iterator
omop_dir
);
41
43
OmopData
(fs::path
json_filename
);
44
46
// TODO
47
};
48
49
}
50
51
#endif
bind_engine
void bind_engine(py::module &m, string name)
Definition
bind_engines.h:35
Brush::Data
namespace containing Data structures used in Brush
Definition
data.cpp:49
Brush::Data::TimeValues
TimeValues
Definition
omop.h:22
Brush::Data::TimeValues::delta
@ delta
Brush::Data::TimeValues::offset
@ offset
Brush::Data::TimeValues::timestamp
@ timestamp
Brush::Data::StringFeatures
StringFeatures
Definition
omop.h:28
Brush::Data::StringFeatures::categorical
@ categorical
Brush::Data::StringFeatures::onehot
@ onehot
Brush::Data::OmopData
Definition
omop.h:34
Brush::Data::OmopData::OmopData
OmopData(fs::directory_iterator omop_dir)
Initialize OMOP Dataset from a directory of CSVs.
Definition
omop.cpp:11
Brush::Data::OmopData::cdm_version
std::string cdm_version
Definition
omop.h:35
Brush::Data::OmopData::sf
StringFeatures sf
Definition
omop.h:37
Brush::Data::OmopData::tv
TimeValues tv
Definition
omop.h:36
src
data
omop.h
Generated by
1.10.0