Find BayesNet and PyClassifiers in $HOME/lib folder
This commit is contained in:
@@ -73,8 +73,15 @@ add_git_submodule("lib/mdlp")
|
|||||||
find_library(XLSXWRITER_LIB NAMES libxlsxwriter.dylib libxlsxwriter.so PATHS ${Platform_SOURCE_DIR}/lib/libxlsxwriter/lib)
|
find_library(XLSXWRITER_LIB NAMES libxlsxwriter.dylib libxlsxwriter.so PATHS ${Platform_SOURCE_DIR}/lib/libxlsxwriter/lib)
|
||||||
message("XLSXWRITER_LIB=${XLSXWRITER_LIB}")
|
message("XLSXWRITER_LIB=${XLSXWRITER_LIB}")
|
||||||
|
|
||||||
find_library(PyClassifiers NAMES libPyClassifiers PyClassifiers libPyClassifiers.a)
|
find_library(PyClassifiers NAMES libPyClassifiers PyClassifiers libPyClassifiers.a PATHS ${Platform_SOURCE_DIR}/../lib REQUIRED)
|
||||||
find_library(BayesNet NAMES libBayesNet BayesNet libBayesNet.a)
|
find_path(PyClassifiers_INCLUDE_DIRS REQUIRED NAMES pyclassifiers PATHS ${Platform_SOURCE_DIR}/../lib/include)
|
||||||
|
find_library(BayesNet NAMES libBayesNet BayesNet libBayesNet.a PATHS ${Platform_SOURCE_DIR}/../lib/lib REQUIRED)
|
||||||
|
find_path(Bayesnet_INCLUDE_DIRS REQUIRED NAMES bayesnet PATHS ${Platform_SOURCE_DIR}/../lib/include)
|
||||||
|
|
||||||
|
message(STATUS "PyClassifiers=${PyClassifiers}")
|
||||||
|
message(STATUS "PyClassifiers_INCLUDE_DIRS=${PyClassifiers_INCLUDE_DIRS}")
|
||||||
|
message(STATUS "BayesNet=${BayesNet}")
|
||||||
|
message(STATUS "Bayesnet_INCLUDE_DIRS=${Bayesnet_INCLUDE_DIRS}")
|
||||||
|
|
||||||
# Subdirectories
|
# Subdirectories
|
||||||
# --------------
|
# --------------
|
||||||
|
@@ -97,8 +97,6 @@ List all the datasets and its properties. The datasets are located in the _datas
|
|||||||
|
|
||||||
where <real_features> can be either the word _all_ or a list of numbers separated by commas, i.e. [0,3,6,7]
|
where <real_features> can be either the word _all_ or a list of numbers separated by commas, i.e. [0,3,6,7]
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### b_grid
|
### b_grid
|
||||||
|
|
||||||
Run a grid search over the parameters of the classifiers. The parameters are defined in the file _grid.txt_ located in the grid folder of the experiments. The file has to be created with the following format:
|
Run a grid search over the parameters of the classifiers. The parameters are defined in the file _grid.txt_ located in the grid folder of the experiments. The file has to be created with the following format:
|
||||||
@@ -138,14 +136,10 @@ Run the main experiment. There are several hyperparameters that can set in comma
|
|||||||
- -\-title <title_text>: Title of the experiment (optional if only one dataset is specificied).
|
- -\-title <title_text>: Title of the experiment (optional if only one dataset is specificied).
|
||||||
- -\-quiet: Don't display detailed progress and result of the experiment.
|
- -\-quiet: Don't display detailed progress and result of the experiment.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### b_manage
|
### b_manage
|
||||||
|
|
||||||
Manage the results of the experiments.
|
Manage the results of the experiments.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### b_best
|
### b_best
|
||||||
|
|
||||||
Get and optionally compare the best results of the experiments. The results can be stored in an MS Excel file.
|
Get and optionally compare the best results of the experiments. The results can be stored in an MS Excel file.
|
||||||
|
@@ -8,7 +8,8 @@ include_directories(
|
|||||||
${Platform_SOURCE_DIR}/lib/folding
|
${Platform_SOURCE_DIR}/lib/folding
|
||||||
${Platform_SOURCE_DIR}/lib/json/include
|
${Platform_SOURCE_DIR}/lib/json/include
|
||||||
${CMAKE_BINARY_DIR}/configured_files/include
|
${CMAKE_BINARY_DIR}/configured_files/include
|
||||||
/usr/local/include
|
${PyClassifiers_INCLUDE_DIRS}
|
||||||
|
${Bayesnet_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
add_executable(PlatformSample sample.cpp ${Platform_SOURCE_DIR}/src/main/Models.cpp)
|
add_executable(PlatformSample sample.cpp ${Platform_SOURCE_DIR}/src/main/Models.cpp)
|
||||||
target_link_libraries(PlatformSample "${PyClassifiers}" "${BayesNet}" ArffFiles mdlp ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::python Boost::numpy)
|
target_link_libraries(PlatformSample "${PyClassifiers}" "${BayesNet}" ArffFiles mdlp ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::python Boost::numpy)
|
@@ -10,7 +10,8 @@ include_directories(
|
|||||||
${MPI_CXX_INCLUDE_DIRS}
|
${MPI_CXX_INCLUDE_DIRS}
|
||||||
${TORCH_INCLUDE_DIRS}
|
${TORCH_INCLUDE_DIRS}
|
||||||
${CMAKE_BINARY_DIR}/configured_files/include
|
${CMAKE_BINARY_DIR}/configured_files/include
|
||||||
/usr/local/include
|
${PyClassifiers_INCLUDE_DIRS}
|
||||||
|
${Bayesnet_INCLUDE_DIRS}
|
||||||
## Platform
|
## Platform
|
||||||
${Platform_SOURCE_DIR}/src
|
${Platform_SOURCE_DIR}/src
|
||||||
${Platform_SOURCE_DIR}/results
|
${Platform_SOURCE_DIR}/results
|
||||||
|
@@ -8,7 +8,8 @@ if(ENABLE_TESTING)
|
|||||||
${Platform_SOURCE_DIR}/lib/json/include
|
${Platform_SOURCE_DIR}/lib/json/include
|
||||||
${Platform_SOURCE_DIR}/lib/folding
|
${Platform_SOURCE_DIR}/lib/folding
|
||||||
${CMAKE_BINARY_DIR}/configured_files/include
|
${CMAKE_BINARY_DIR}/configured_files/include
|
||||||
/usr/local/include
|
${PyClassifiers_INCLUDE_DIRS}
|
||||||
|
${Bayesnet_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
set(TEST_SOURCES_PLATFORM TestUtils.cpp TestPlatform.cpp)
|
set(TEST_SOURCES_PLATFORM TestUtils.cpp TestPlatform.cpp)
|
||||||
add_executable(${TEST_PLATFORM} ${TEST_SOURCES_PLATFORM})
|
add_executable(${TEST_PLATFORM} ${TEST_SOURCES_PLATFORM})
|
||||||
|
Reference in New Issue
Block a user