Add BayesNet library to PyClassifiers library

This commit is contained in:
2024-01-09 17:08:41 +01:00
parent 1ef8faf10a
commit 795112cb2c
6 changed files with 51 additions and 29 deletions

View File

@@ -6,6 +6,6 @@ include_directories(
${Python3_INCLUDE_DIRS}
${TORCH_INCLUDE_DIRS}
)
add_library(PyClassifiers SHARED PyWrap.cc STree.cc ODTE.cc SVC.cc RandomForest.cc PyClassifier.cc)
add_library(PyClassifiers SHARED ${PyClassifiers_SOURCES})
#target_link_libraries(PyClassifiers ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy xgboost::xgboost)
target_link_libraries(PyClassifiers ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy)
target_link_libraries(PyClassifiers BayesNet ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy)

View File

@@ -3,7 +3,7 @@
See https ://stackoverflow.com/questions/36071672/using-xgboost-in-c
//See https ://stackoverflow.com/questions/36071672/using-xgboost-in-c