5 #include <boost/python.hpp>
10 TK_DECLARE_PTR(PredictorWrapper);
12 typedef boost::python::object PY_FUN;
14 class PredictorWrapper
17 static PredictorWrapperPtr create(const std::string& python_dir, const std::string& model_dir); // model.pkl file
20 double predict(int index, const std::vector<double>& f);
23 PredictorWrapper(const std::string& py_dir, const std::string& fname);
24 static PredictorWrapperWPtr instance;
33 #endif // _PREDICTOR_H_