grt
grt copied to clipboard
MLBase::getMinChange() const’ member function declared in class ‘GRT::MLBase’
/grt/GRT/CoreModules/MLBase.cpp:262:30: error: no ‘GRT::Float GRT::MLBase::getMinChange() const’ member function declared in class ‘GRT::MLBase’ Float MLBase::getMinChange() const{ ^~~~~ /home/ldd/project_computervision/grt/GRT/CoreModules/MLBase.cpp:316:42: error: no ‘bool GRT::MLBase::getRandomiseTrainingOrder() const’ member function declared in class ‘GRT::MLBase’ bool MLBase::getRandomiseTrainingOrder() const { return randomiseTrainingOrder; } ^~~~~ CMakeFiles/grt.dir/build.make:2150: recipe for target 'CMakeFiles/grt.dir/home/ldd/project_computervision/grt/GRT/CoreModules/MLBase.cpp.o' failed make[2]: *** [CMakeFiles/grt.dir/home/ldd/project_computervision/grt/GRT/CoreModules/MLBase.cpp.o] Error 1 CMakeFiles/Makefile2:1597: recipe for target 'CMakeFiles/grt.dir/all' failed make[1]: *** [CMakeFiles/grt.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2
have sovlved Float MLBase::getMinChange() const; bool MLBase::getRandomiseTrainingOrder() const; these two function was annotated
dupe https://github.com/nickgillian/grt/issues/170
Hello, I have the same problem when I try to $ make -j1
[ 18%] Building CXX object CMakeFiles/grt.dir/home/x/grt-master/GRT/CoreModules/MLBase.cpp.o /home/x/grt-master/GRT/CoreModules/MLBase.cpp:262:7: error: no declaration matches ‘GRT::Float GRT::MLBase::getMinChange() const’ 262 | Float MLBase::getMinChange() const{ | ^~~~~~ /home/x/grt-master/GRT/CoreModules/MLBase.cpp:262:7: note: no functions named ‘GRT::Float GRT::MLBase::getMinChange() const’ In file included from /home/x/grt-master/GRT/CoreModules/MLBase.cpp:22: /home/x/grt-master/GRT/CoreModules/MLBase.h:72:15: note: ‘class GRT::MLBase’ defined here 72 | class GRT_API MLBase : public GRTBase, public Observer< TrainingResult >, public Observer< TestInstanceResult > | ^~~~~~ make[2]: *** [CMakeFiles/grt.dir/build.make:1214: CMakeFiles/grt.dir/home/x/grt-master/GRT/CoreModules/MLBase.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2713: CMakeFiles/grt.dir/all] Error 2 make: *** [Makefile:161: all] Error 2
I have a look to the MLbase.h and MLbase.cpp in the CoreModules folder and the two functions are not annotated. Can anyone help me? Thanks in advance.
Glance at #170
Basically, in GRT/CoreModules/MLBase.h uncomment bool getUseValidationSet() const;
and bool getRandomiseTrainingOrder() const;
Then delete or disable the examples from being buillt. let me know if you need more help.
The problem was in the MLBase.h, this line was commented Float getMinChange() const;
. Now It's unncommented and It works. But I have a new problem...
[ 36%] Linking CXX executable grt-split-tool /usr/bin/ld: CMakeFiles/grt-split-tool.dir/home/x/grt-master/tools/grt-split-tool.cpp.o: en la función
GRT::WarningLog::WarningLog(std::__cxx11::basic_string<char, std::char_traitsGRT::WarningLog::warningLoggingEnabled' sin definir /usr/bin/ld: CMakeFiles/grt-split-tool.dir/home/x/grt-master/tools/grt-split-tool.cpp.o: en la función
GRT::WarningLog::triggerCallback(std::__cxx11::basic_string<char, std::char_traitsGRT::WarningLog::observerManager' sin definir collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/grt-split-tool.dir/build.make:105: grt-split-tool] Error 1 make[1]: *** [CMakeFiles/Makefile2:362: CMakeFiles/grt-split-tool.dir/all] Error 2 make: *** [Makefile:161: all] Error 2