Move tests library to tests/lib
Add PBC4cip classifier
This commit is contained in:
@@ -4,5 +4,5 @@ include_directories(
|
||||
${PyClassifiers_SOURCE_DIR}/lib/json/include
|
||||
${Bayesnet_INCLUDE_DIRS}
|
||||
)
|
||||
add_library(PyClassifiers ODTE.cc STree.cc SVC.cc RandomForest.cc XGBoost.cc PyClassifier.cc PyWrap.cc)
|
||||
add_library(PyClassifiers ODTE.cc STree.cc SVC.cc RandomForest.cc XGBoost.cc PyClassifier.cc PyWrap.cc PBC4cip.cc)
|
||||
target_link_libraries(PyClassifiers ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy)
|
8
pyclfs/PBC4cip.cc
Normal file
8
pyclfs/PBC4cip.cc
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "PBC4cip.h"
|
||||
|
||||
namespace pywrap {
|
||||
PBC4cip::PBC4cip() : PyClassifier("core.PBC4cip", "PBC4cip", true)
|
||||
{
|
||||
validHyperparameters = { "random_state" };
|
||||
}
|
||||
} /* namespace pywrap */
|
13
pyclfs/PBC4cip.h
Normal file
13
pyclfs/PBC4cip.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef PBC4CIP_H
|
||||
#define PBC4CIP_H
|
||||
#include "PyClassifier.h"
|
||||
|
||||
namespace pywrap {
|
||||
class PBC4cip : public PyClassifier {
|
||||
public:
|
||||
PBC4cip();
|
||||
~PBC4cip() = default;
|
||||
};
|
||||
|
||||
} /* namespace pywrap */
|
||||
#endif /* PBC4CIP_H */
|
Reference in New Issue
Block a user