We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Found some build error in RHEL 7.5 and Ubuntu 18.04 and append the code diff here
$ git diff --ignore-all-space diff --git a/eval.cpp b/eval.cpp index c196fc8..daa9e17 100755 --- a/eval.cpp +++ b/eval.cpp @@ -151,7 +151,7 @@ namespace Tn precision[i] = TP / total; //compute AP: - sort(checkPRBoxs.begin(),checkPRBoxs.end(),[](CheckPair& left,CheckPair& right){ + sort(checkPRBoxs.begin(),checkPRBoxs.end(),[](const CheckPair& left, const CheckPair& right){ return left.first.score > right.first.score; } ); diff --git a/include/dataReader.h b/include/dataReader.h index 39b47bb..17bf20b 100644 --- a/include/dataReader.h +++ b/include/dataReader.h @@ -4,6 +4,7 @@ #include <vector> #include <list> #include <string> +#include <tuple> namespace Tn {
$ git diff --ignore-all-space diff --git a/eval.cpp b/eval.cpp index c196fc8..a21f5d2 100755 --- a/eval.cpp +++ b/eval.cpp @@ -3,6 +3,7 @@ #include <assert.h> #include <iostream> #include <iomanip> +#include <cmath> using namespace std; @@ -146,7 +147,7 @@ namespace Tn } //recall: - recall[i] = (abs(TP + FN) < 1e-5) ? 1 : TP / (TP + FN); + recall[i] = (std::fabs(TP + FN) < 1e-5) ? 1 : TP / (TP + FN); //precision precision[i] = TP / total;
The text was updated successfully, but these errors were encountered:
fix issues #51 and #60
9eb9e80
Thanks, I modified as your suggestion.
Sorry, something went wrong.
No branches or pull requests
Found some build error in RHEL 7.5 and Ubuntu 18.04 and append the code diff here
The text was updated successfully, but these errors were encountered: