Refactor to accept new Library structure

This commit is contained in:
2024-03-08 22:20:13 +01:00
parent b7398db9b1
commit 7e4ee0a9a9
46 changed files with 122 additions and 132 deletions

View File

@@ -7,9 +7,8 @@ include_directories(
${Platform_SOURCE_DIR}/lib/argparse/include
${Platform_SOURCE_DIR}/lib/folding
${Platform_SOURCE_DIR}/lib/json/include
/usr/local/include/bayesnet
/usr/local/include/pyclassifiers
${CMAKE_BINARY_DIR}/configured_files/include
/usr/local/include
)
add_executable(PlatformSample sample.cc ${Platform_SOURCE_DIR}/src/main/Models.cc)
# target_link_libraries(PlatformSample "${PyClassifiers}" "${BayesNet}" ArffFiles mdlp "${TORCH_LIBRARIES}")
target_link_libraries(PlatformSample "${PyClassifiers}" "${BayesNet}" ArffFiles mdlp ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::python Boost::numpy)

View File

@@ -1,19 +1,19 @@
#include <iostream>
#include <torch/torch.h>
#include <string>
#include <map>
#include <fstream>
#include <torch/torch.h>
#include <argparse/argparse.hpp>
#include <nlohmann/json.hpp>
#include <ArffFiles.h>
#include <utils/BayesMetrics.h>
#include <CPPFImdlp.h>
#include <folding.hpp>
#include <bayesnet/utils/BayesMetrics.h>
#include "Models.h"
#include "modelRegister.h"
#include "config.h"
const std::string PATH = { data_path.begin(), data_path.end() };
const std::string PATH = { platform_data_path.begin(), platform_data_path.end() };
pair<std::vector<mdlp::labels_t>, map<std::string, int>> discretize(std::vector<mdlp::samples_t>& X, mdlp::labels_t& y, std::vector<std::string> features)
{