我是 python 编程的新手。在 python 代码中调用 Vigra.learning.RandomForest.Writehdf5 函数时,会出现如下错误:
self.RF.writeHDF5(fileName, pathInFile, overwriteFlag)
Boost.Python.ArgumentError: Python argument types in
RandomForest.writeHDF5(RandomForest, str, str, bool)
did not match C++ signature:
writeHDF5(class vigra::RandomForest<unsigned int,struct vigra::ClassificationTag>, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > filename, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > pathInFile='')
我已经安装了 python 扩展包 vigranumpy 以及 boost python,但我还没有安装 vigra (c++ image processing lib)。我无法追踪错误的原因。
提前致谢