Remove using namespace from Library
This commit is contained in:
9
src/PyClassifiers/CMakeLists.txt
Normal file
9
src/PyClassifiers/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
include_directories(${BayesNet_SOURCE_DIR}/lib/mdlp)
|
||||
include_directories(${BayesNet_SOURCE_DIR}/lib/Files)
|
||||
include_directories(${BayesNet_SOURCE_DIR}/lib/json/include)
|
||||
include_directories(${BayesNet_SOURCE_DIR}/src/BayesNet)
|
||||
include_directories(${BayesNet_SOURCE_DIR}/src/Platform)
|
||||
add_library(BayesNet bayesnetUtils.cc Network.cc Node.cc BayesMetrics.cc Classifier.cc
|
||||
KDB.cc TAN.cc SPODE.cc Ensemble.cc AODE.cc TANLd.cc KDBLd.cc SPODELd.cc AODELd.cc BoostAODE.cc
|
||||
Mst.cc Proposal.cc CFS.cc FCBF.cc IWSS.cc FeatureSelect.cc ${BayesNet_SOURCE_DIR}/src/Platform/Models.cc)
|
||||
target_link_libraries(BayesNet mdlp "${TORCH_LIBRARIES}")
|
15
src/PyClassifiers/PyClf.h
Normal file
15
src/PyClassifiers/PyClf.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef PYCLF_H
|
||||
#define PYCLF_H
|
||||
#include <string>
|
||||
#include "DotEnv.h"
|
||||
namespace PyClassifiers {
|
||||
class PyClf {
|
||||
public:
|
||||
PyClf(const std::string& name);
|
||||
virtual ~PyClf();
|
||||
private:
|
||||
std::string name;
|
||||
|
||||
};
|
||||
} /* namespace PyClassifiers */
|
||||
#endif /* PYCLF_H */
|
18
src/PyClassifiers/Pyclf.cc
Normal file
18
src/PyClassifiers/Pyclf.cc
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "PyClf.h"
|
||||
|
||||
namespace PyClassifiers {
|
||||
|
||||
PyClf::PyClf(const std::std::string& name) : name(name)
|
||||
{
|
||||
env = platform::DotEnv();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
PyClf::~PyClf()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} /* namespace PyClassifiers */
|
Reference in New Issue
Block a user