+void PredictorWrapper::dump()
+{
+ LOG_DEBUG(TAG, "dump");
+ std::string ss = "";
+ try{
+ py::object ret = this->dump_func();
+ ss = py::extract<std::string>(ret);
+ } catch (boost::python::error_already_set const &){
+ std::string perror_str = parse_python_exception();
+ LOG_ERROR(TAG, "Error in Python: " + perror_str)
+ }
+ LOG_DEBUG(TAG, ss);
+}
+
+double PredictorWrapper::predict()
+{
+ LOG_DEBUG(TAG, "predict");
+ try{
+ this->predict_func();
+ } catch (boost::python::error_already_set const &){
+ std::string perror_str = parse_python_exception();
+ LOG_ERROR(TAG, "Error in Python: " + perror_str)
+ }
+ return 0.1;
+}
+