Refactor Classifier classes
This commit is contained in:
@@ -42,7 +42,6 @@ namespace pywrap {
|
||||
if (result != moduleClassMap.end()) {
|
||||
return;
|
||||
}
|
||||
std::cout << "1a" << std::endl;
|
||||
PyObject* module = PyImport_ImportModule(moduleName.c_str());
|
||||
if (PyErr_Occurred()) {
|
||||
errorAbort("Couldn't import module " + moduleName);
|
||||
@@ -107,6 +106,13 @@ namespace pywrap {
|
||||
Py_XDECREF(result);
|
||||
return value;
|
||||
}
|
||||
std::string PyWrap::sklearnVersion()
|
||||
{
|
||||
return "1.0";
|
||||
// CPyObject data = PyRun_SimpleString("import sklearn;return sklearn.__version__");
|
||||
// std::string result = PyUnicode_AsUTF8(data);
|
||||
// return result;
|
||||
}
|
||||
std::string PyWrap::version(const clfId_t id)
|
||||
{
|
||||
return callMethodString(id, "version");
|
||||
|
Reference in New Issue
Block a user