Skip to content

Replica networks cleanup - #263

Merged
jhprinz merged 24 commits into
openpathsampling:masterfrom
dwhswenson:replica_networks
May 30, 2015
Merged

jhprinz merged 24 commits into
openpathsampling:masterfrom
dwhswenson:replica_networks

Conversation

@dwhswenson

Copy link
Copy Markdown
Member

This will involve a little more work on the replica exchange network analysis. In particular, it supports:

  • Counting transitions from SampleSet instead of identifying repex moves
  • Clean support for labels (numeric or string)
  • Clean up matrix/dataframe generation to clearly separate building the sparse data from building the output objects (this will make it easy to create analysis based on other measures)
  • Docstrings
  • Add is_ensemble_change_mover property (waiting on PathMoveChange improvements #251)
  • Replace current matrix calculation by something which normalizes to all RepEx moves (waiting on PathMoveChange improvements #251)
  • Add tests for is_ensemble_change_mover

This resolves #262.

@dwhswenson dwhswenson self-assigned this May 16, 2015
@dwhswenson dwhswenson added this to the 1.0 milestone May 16, 2015
@dwhswenson dwhswenson changed the title Replica networks cleanup [WIP] Replica networks cleanup May 18, 2015
@dwhswenson dwhswenson mentioned this pull request May 24, 2015
1 of 2 tasks
@dwhswenson dwhswenson changed the title [WIP] Replica networks cleanup Replica networks cleanup May 30, 2015
@dwhswenson

Copy link
Copy Markdown
Member Author

Passes Travis! This is now ready for review and merge.

I still find the specific question asked in #262 a little problematic (see my most recent #262 (comment)), however, I've completed everything I set out to do in this PR.

@dwhswenson dwhswenson assigned jhprinz and unassigned dwhswenson May 30, 2015
@jhprinz

jhprinz commented May 30, 2015

Copy link
Copy Markdown
Contributor

Looks good.

Still thinking that we might make is_ensemble_change_mover computable and not having to specify it directly.

jhprinz added a commit that referenced this pull request May 30, 2015
@jhprinz
jhprinz merged commit cd36cc6 into openpathsampling:master May 30, 2015
@dwhswenson

Copy link
Copy Markdown
Member Author

How would we make it computable? And does that make sense?

Right now, you only have to do anything if you're creating a SampleGeneratingMover that also involves changing ensembles. Any combination movers already compute it from their submovers.

And consider this minus-like sequential move:

  1. Take trajectory from innermost interface, extend it forward until it satisfies the minus ensemble
  2. Select the new subtrajectory that satisfies the innermost interface.
  3. Replace the old innermost interface trajectory with that new one.

For this, is_ensemble_change_mover should be False. Currently, the user would have to set that manually, but my approach allows the user to set that manually. (This is why it is extremely important that the default be None, not False). A computational approach would need to figure that out as well.

This approach also allows a user to exclude certain ensemble-change movers from analysis; for example, maybe you want to look at only the normal replica exchange, and none of the minus moves. You can set the flag to "False" on the minus moves before doing your analysis.

@jhprinz

jhprinz commented May 31, 2015

Copy link
Copy Markdown
Contributor

How would we make it computable?

I don't know, maybe that is not possible :) Just thought it would be cool, if we could avoid setting it and derive it from some properties.

And does that make sense?

Why not, if it works without fiddling? Then we could remove the code and a potential user that wants to write a new Mover does not need to worry about it.

This approach also allows a user to exclude certain ensemble-change movers from analysis; for example, maybe you want to look at only the normal replica exchange, and none of the minus moves. You can set the flag to "False" on the minus moves before doing your analysis.

I think this is the important point. it is for analysis to manually set, what you are interested in. A computed approach does not have this flexibility. Although it also changes the meaning a little.

So maybe move that idea to distant future :)

@dwhswenson
dwhswenson deleted the replica_networks branch October 26, 2015 00:47
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

Successfully merging this pull request may close these issues.

Normalization in replica exchange matrices

2 participants