-
Notifications
You must be signed in to change notification settings - Fork 72
update evaluation set size on sortedDataSelection #192
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
update evaluation set size on sortedDataSelection #192
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
Important
Looks good to me! 👍
Reviewed everything up to 1f29cc2 in 1 minute and 42 seconds. Click for details.
- Reviewed
15lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/selection.ts:1067
- Draft comment:
Ensure consistency: here you sum t.tile.metadata.nPoints while elsewhere (e.g. in wrapWithSelectionMetadata) you use tile.manifest.nPoints. Verify these properties are synonymous, or use one consistently. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 70% Looking at the code, this is about a change that was made in the diff - adding evaluationSetSize calculation. The comment points out a real inconsistency in property access patterns. However, I don't see strong evidence that these properties are actually different or that using one vs the other would cause issues. Without seeing the Tile class implementation, I can't be certain if metadata.nPoints and manifest.nPoints are truly synonymous. I may be underestimating the importance of consistent property access patterns. Inconsistent patterns could make the code harder to maintain and understand. While consistency is good, without clear evidence that these properties are different or that using one vs the other would cause problems, this comment feels more like a style preference than a necessary change. The comment should be deleted because it's speculative - we don't have strong evidence that the properties are different or that the inconsistency causes any real issues.
Workflow ID: wflow_kXM4keaAlUISNYnp
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
1f29cc2 to
128eff0
Compare
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.
Important
Looks good to me! 👍
Reviewed 128eff0 in 1 minute and 26 seconds. Click for details.
- Reviewed
15lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/selection.ts:1067
- Draft comment:
Ensure that each tile’s manifest is populated before summing its nPoints. If not, consider awaiting tile.populateManifest() or adding a guard to avoid runtime errors. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 70% The code already ensures the manifest is populated by awaiting Promise.all() on line 1060 which includes tile.populateManifest(). This means by the time we reach line 1068, the manifest will definitely be populated. The comment is suggesting something that's already been handled correctly in the code. I could be wrong about whether populateManifest() is actually called in that Promise.all() - I'm making an assumption about what get_column() does. Even if I'm wrong about get_column(), the code shows that the author clearly knows about manifest population since they use it elsewhere. The comment is still not providing value. The comment should be deleted since it's suggesting something that's either already handled or that the author is clearly aware of, given the codebase context.
Workflow ID: wflow_msUQDDC4vBXsgbxo
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
128eff0 to
4637f47
Compare
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.
Important
Looks good to me! 👍
Reviewed 4637f47 in 1 minute and 14 seconds. Click for details.
- Reviewed
37lines of code in1files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/selection.ts:357
- Draft comment:
Using push to build the pairs array is clearer than preallocating with new Array(). - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold70%This comment is purely informative and does not provide any actionable feedback or suggestions for improvement. It simply states that usingpushis clearer than preallocating withnew Array(), but does not suggest any changes or improvements to the code.
2. src/selection.ts:1049
- Draft comment:
Await the result of get_column before casting to Vector to ensure the column is resolved. - Reason this comment was not posted:
Comment looked like it was already resolved.
3. src/selection.ts:1068
- Draft comment:
Set evaluationSetSize by summing tile.manifest.nPoints so that the overall evaluation count carries over to a sorted selection. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_KsvAZmCRFZwaStGW
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
4637f47 to
ab8ffb4
Compare
Merge activity
|
ab8ffb4 to
0acfc5c
Compare

Fixes an omission where the overall selection set size wasn't being carried over into a sorted selection from the original selection
Important
Fixes omission in
SortedDataSelection.fromSelection()to updateevaluationSetSizefrom original selection.SortedDataSelection.fromSelection()to updateevaluationSetSizefrom original selection.addSort()inSelectionTileto usepush()instead of pre-allocating array.SortedDataSelection.fromSelection()fortileFunction.This description was created by
for 4637f47. You can customize this summary. It will automatically update as commits are pushed.