Repository navigation
[WIP] Faster SequentialEnsemble - #204
Merged
jhprinz merged 20 commits intoApr 22, 2015
Merged
Conversation
Committing because I need to merge in the ensemble name changes in master before continuing.
This was referenced Apr 5, 2015
Merged
Still need to actually USE this cache.
Also skeletons for test of seq ens cache
Member
Author
|
This was a bit more complicated than I thought (I should have known -- anything dealing with I suggest we merge the progress so far, although we should make more improvements along these lines later. |
Contributor
|
Looks good. Looking forward to faster Ensembles!!! Yes |
jhprinz
added a commit
that referenced
this pull request
Apr 22, 2015
[WIP] Faster SequentialEnsemble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current version of$O(N^2)$ scaling with the number of frames in a trajectory.
SequentialEnsemblechecks the entire trajectory every time can-append is called. This is redundant, since the earlier frames were already assigned to an ensemble in the sequence the previous time can-append was called. The current implementation hasFor normal TIS trajectories (length ~100 frames), that doesn't hurt too much. However, this can be a serious problem for minus interface trajectories (length >1000 frames).
Looks like it should be pretty easy to fix: either I was thinking about doing something like this when I initially implemented
SequentialEnsemble, or I'm really lucky. The code even pretty much points out how to start with the cached values; just need to figure out when to cache the values and when to reset the cache.Tasks
can_appendcan_prepend