-
Notifications
You must be signed in to change notification settings - Fork 129
Stochastic discrete gradient #1097
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
Stochastic discrete gradient #1097
Conversation
…t' into stochastic-discrete-gradient
|
TODO:
|
|
|
@thom-dani bug report
the problem is that there is a gradient caching mechanism and that mechanism needs to be disabled if the gradient parameters (backend, seed) change from one execution to the next. thanks for fixing this ASAP and letting me know when this is done. |
…into stochastic-discrete-gradient
…into stochastic-discrete-gradient
|
hi @thom-dani , thanks for the hot fix.
|
|
Hello @julien-tierny, I fixed the bug and I don't observe the behavior you described anymore. |
|
alright, the bug is fixed. The features are working as expected now! |
|
new bug report:
|
| std::vector<char> isPL; | ||
| this->discreteGradient_.getCriticalPointMap(criticalPoints, isPL); | ||
|
|
||
| // dmt1Saddle2PL_.resize(triangulation.getNumberOfEdges()); |
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.
@thom-dani
can these comments go away?
| Timer t; | ||
|
|
||
| const bool allowBoundary = true; | ||
| // const bool returnSaddleConnectors = false; |
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.
@thom-dani
can these comments go away?
| isRemovableSaddle.resize(numberOfEdges); | ||
|
|
||
| std::vector<int> dmt1Saddle2PL_(numberOfEdges, -1); | ||
| // dmt1Saddle2PL_.resize(numberOfEdges); |
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.
@thom-dani
can't these comments go away?
| isRemovableSaddle.resize(numberOfTriangles); | ||
|
|
||
| std::vector<int> dmt2Saddle2PL_(numberOfTriangles, -1); | ||
| // dmt2Saddle2PL_.resize(numberOfTriangles); |
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.
@thom-dani
can't these comments go away?
|
|
||
| if(vpath.isValid_) { | ||
| // add persistence pair to collection if necessary | ||
| // if(CollectPersistencePairs and outputPersistencePairs_) { |
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.
comments to remove as well.
|
ok, the code looks good.
|
faac9a4 to
9c5a463
Compare
|
everything ok. TODO: |
|
alright, let's go! |
Thanks for contributing to TTK!
Before submitting your pull request, please:
Review our Contributor Guidelines, in particular regarding code formatting (with clang-format) and continuous integration.
Please provide a quick description of your contributions below:
Implementation of stochastic discrete gradient.