Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLBase::getMinChange() const’ member function declared in class ‘GRT::MLBase’ #171

Open
liudongdong1 opened this issue Dec 9, 2019 · 4 comments

Comments

@liudongdong1
Copy link

/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

@andymule
Copy link

dupe
#170

@feco-m
Copy link

feco-m commented Apr 28, 2020

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.

@andymule
Copy link

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.

@feco-m
Copy link

feco-m commented Apr 29, 2020

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_traits, std::allocator > const&)':
grt-split-tool.cpp:(.text._ZN3GRT10WarningLogC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN3GRT10WarningLogC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3c): referencia a GRT::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_traits, std::allocator > const&) const':
grt-split-tool.cpp:(.text._ZNK3GRT10WarningLog15triggerCallbackERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK3GRT10WarningLog15triggerCallbackERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x84): referencia a GRT::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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants