-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug fix: Optimizing branch lengths in NNI Engine via GP #484
Conversation
src/nni_evaluation_engine.cpp
Outdated
// std::ignore = pre_nni; | ||
// NNIBranchLengthOptimization(nni, new_edge_ids); | ||
// } | ||
// GetGPEngine().ProcessOperations(GetDAG().PopulatePLVs()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to now remove the commented code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
src/nni_evaluation_engine.cpp
Outdated
} | ||
|
||
GetGPEngine().ProcessOperations(GetDAG().ComputeLikelihoods()); | ||
auto likelihoods = GetGPEngine().GetPerGPCSPLogLikelihoods(); | ||
std::cout << "GPEngine::UpdateEngineAfterModifying [END]" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's either remove the printed message or make it optional with an is_quiet parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
// GetLikelihoodEvalEngine().GetDAGBranchHandler().GetBranchLengthData(); | ||
// return log_likelihoods.block(0, 0, GetEdgeCount(), log_likelihoods.cols()); | ||
// } | ||
const PLVEdgeHandler &GetLikelihoodPVs() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented code can go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
"Adds all valid edges with present nodes to the DAG.") | ||
.def( | ||
"fully_connect", [](GPDAG &self) { self.FullyConnect(); }, | ||
"Adds all valid edges with present nodes to the DAG.") | ||
// ** I/O |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python complains with this version because it doesn't know about the return type. I've removed the return value, since we don't need it on the python side and that's less work than exposing it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you made these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor stuff only.
…lovi/bito into 483-nni-search-gp-branch-lengths-fix
Description
Closes #483
Tests
N/A
Checklist:
clang-format
has been run