X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=include%2FPredictorWrapper.h;h=c41a8bca6907dca5763a210baa45bc401c4bafb6;hb=db369d962b595544373b417ae9a76e7268eb12fb;hp=9ceb21ac29e4f1c95f17b7867a4f4064c9dc7feb;hpb=3aa517d206c44156fe86697aeadc5f75ea212329;p=trackerpp.git diff --git a/include/PredictorWrapper.h b/include/PredictorWrapper.h index 9ceb21a..c41a8bc 100644 --- a/include/PredictorWrapper.h +++ b/include/PredictorWrapper.h @@ -14,13 +14,13 @@ namespace suanzi { class PredictorWrapper { public: - static PredictorWrapperPtr create(const std::string& fname); + static PredictorWrapperPtr create(const std::string& python_dir, const std::string& model_dir); // model.pkl file ~PredictorWrapper(){} void dump(); - double predict(int index, std::vector f); + double predict(int index, const std::vector& f); private: - PredictorWrapper(const std::string& fname); + PredictorWrapper(const std::string& py_dir, const std::string& fname); static PredictorWrapperWPtr instance; PY_FUN dump_func;