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.
Edge type flags #89
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
Uh oh!
There was an error while loading. Please reload this page.
Edge type flags #89
Changes from all commits
68d78d33bd5e25bcdc26792ce106a022818File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
The Edge Construction section does not match the shipped policy set.
scripts/train.pyaccepts four values:auto,radius,knn, andknn_if_isolated. The default isauto. This section lists onlyradiusandknn, and it describesautoandknn_if_isolatedas legacy values that map toradius.resolve_edge_policymapsautotoknn_if_isolatedwhen the sampling strategy isscaled_gaussian.Lines 221-223 also state that
--knn_fallback_krepairs stranded waters "underradius".ProteinWaterUpdate.__init__setsrescue_isolatedonly when the resolved policy isknn_if_isolated. A positive--knn_fallback_kunderradiushas no effect, whichtest_plain_radius_does_not_rescuepins.Document all four values, the
autoresolution rule, and the fact that the rescue requiresknn_if_isolated.🤖 Prompt for AI Agents
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.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Correct the documented defaults.
The table shows
--dynamic_edge_policydefaultradiusand lists onlyradiusorknn.scripts/train.pysetsdefault="auto"withchoices=["auto", "radius", "knn", "knn_if_isolated"]. The--knn_fallback_krow implies that the rescue applies to radius runs; it applies only toknn_if_isolated.📝 Proposed table fix
📝 Committable suggestion
🤖 Prompt for AI Agents
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Also forward
sampling_strategytoFlowMatcher.This call restores the recorded
sampling_strategyfor the model. TheFlowMatcherconstruction later in this file does not receive it, so integration samples the water prior with the"uniform_ball"default. A run trained with"scaled_gaussian"then integrates from a different prior than it was trained on.🐛 Proposed fix at the FlowMatcher call site
🤖 Prompt for AI Agents
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.
🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: diff-use/WaterFlow
Length of output: 6895
🏁 Script executed:
Repository: diff-use/WaterFlow
Length of output: 17436
Wire
sampling_strategythrough training.scripts/train.py#L632readsargs.sampling_strategy, butscripts/train.py:parse_args()does not define--sampling_strategy, so training fails at startup. Add the CLI option withuniform_ball/scaled_gaussianchoices, then passsampling_strategy=args.sampling_strategyto theFlowMatcherconstruction.📍 Affects 2 files
scripts/train.py#L628-L638(this comment)scripts/train.py#L1101-L1108scripts/inference.py#L279-L281🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.