5 #include <boost/python.hpp>
10 TK_DECLARE_PTR(PredictorWrapper);
12 typedef boost::python::object PY_FUN;
14 class PredictorWrapper
17 PredictorWrapper(const std::string& module="predictor", const std::string& pydir = "./python");
20 double predict(int index, const std::vector<double>& f);
21 bool load(const std::string& fname); // load pkl file
24 boost::python::object m_module;
29 #endif // _PREDICTOR_H_