BayesNet/tests/utils.h

14 lines
510 B
C
Raw Normal View History

2023-07-18 11:44:08 +00:00
#include <string>
#include <vector>
#include <map>
#include <tuple>
#include "../sample/ArffFiles.h"
#include "../sample/CPPFImdlp.h"
2023-07-18 11:43:26 +00:00
#ifndef BAYESNET_UTILS_H
#define BAYESNET_UTILS_H
2023-07-18 11:44:08 +00:00
using namespace std;
const string PATH = "../../data/";
pair<vector<mdlp::labels_t>, map<string, int>> discretize(vector<mdlp::samples_t> &X, mdlp::labels_t &y, vector<string> features);
tuple<vector<vector<int>>, vector<int>, vector<string>, string, map<string, vector<int>>> loadFile(string name);
2023-07-18 11:43:26 +00:00
#endif //BAYESNET_UTILS_H