Complete configuration
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
#include "TestUtils.h"
|
||||
#include "folding.hpp"
|
||||
#include <folding_config.h>
|
||||
|
||||
TEST_CASE("Version Test", "[Folding]")
|
||||
{
|
||||
std::string actual_version = "1.1.1";
|
||||
std::string actual_version = FOLDING_VERSION;
|
||||
auto data = std::vector<int>(100);
|
||||
folding::StratifiedKFold stratified_kfold(5, data, 17);
|
||||
REQUIRE(stratified_kfold.version() == actual_version);
|
||||
|
@@ -8,6 +8,7 @@
|
||||
#include <tuple>
|
||||
#include "ArffFiles.hpp"
|
||||
#include "fimdlp/CPPFImdlp.h"
|
||||
#include "folding_config.h"
|
||||
|
||||
bool file_exists(const std::string& name);
|
||||
std::pair<vector<mdlp::labels_t>, map<std::string, int>> discretize(std::vector<mdlp::samples_t>& X, mdlp::labels_t& y, std::vector<string> features);
|
||||
@@ -44,11 +45,12 @@ class Paths {
|
||||
public:
|
||||
static std::string datasets()
|
||||
{
|
||||
return "data/";
|
||||
std::string result = { folding_data_path.begin(), folding_data_path.end() };
|
||||
return result + "/";
|
||||
}
|
||||
static std::string csv()
|
||||
{
|
||||
return "../../tests/csv/";
|
||||
return datasets() + "../csv/";
|
||||
}
|
||||
};
|
||||
class CSVFiles {
|
||||
@@ -73,4 +75,4 @@ public:
|
||||
return indices;
|
||||
}
|
||||
};
|
||||
#endif //TEST_UTILS_H
|
||||
#endif //TEST_UTILS_H
|
||||
|
Reference in New Issue
Block a user