Skip to content

Conversation

@TaXxER
Copy link
Contributor

@TaXxER TaXxER commented Dec 9, 2025

Summary:
Changes:

  • Fixed typo min_segmens_size -> min_segments_size
  • One of the tests missed the test_ prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
  • In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
  • List comprehension was unnecessarily complex with brackets and parantheses

Differential Revision: D88744756

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 9, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 9, 2025

@TaXxER has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88744756.

facebook-github-bot pushed a commit that referenced this pull request Dec 9, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 9, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 9, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 10, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Reviewed By: Lorenzo-Perini

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 10, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Reviewed By: Lorenzo-Perini

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 10, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Reviewed By: Lorenzo-Perini

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 10, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Reviewed By: Lorenzo-Perini

Differential Revision: D88744756
facebook-github-bot pushed a commit that referenced this pull request Dec 10, 2025
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Reviewed By: Lorenzo-Perini

Differential Revision: D88744756
Summary:

Latest sklearn version no longer accepts empty input, and raises an error.

This breaks our unit test, and our Github CI. This change keeps our behavior the same as it was.

See error:
https://github.com/facebookincubator/MCGrad/actions/runs/20099929745/job/57667810962

Reviewed By: Lorenzo-Perini

Differential Revision: D88847925
Summary:

This diff just does the low-hanging fruit: removing references to internal wikis, documentation, code, etc

# Discussion point
- There are still a bunch of metrics that have `adjust_unjoined` argument, and a description of what unjoined data is. It will be somewhat non-trivial to fully disentangle this from the main metrics. Do want to:
   1) Fully remove all mentions of `adjust_unjoined`, disentangle all unjoined versions of the metrics from the main metric implementation, and move those to the `internal` folder, or
   2) Simply just remove the references of where unjoined data is used (previously one comment said that it is used a lot in the Ads or), and be OK with `adjust_unjoined` existing in the codebase. My feeling is that this will come across at worst as "a bit silly" to outsiders, and they will wonder "why the hell would anyone ever have data in that format", but as I foresee, the harm of leaving it in won't really go beyond that.

Reviewed By: Lorenzo-Perini

Differential Revision: D88739146
Summary:

Changes:
- Fixed typo min_segmens_size -> min_segments_size
- One of the tests missed the `test_` prefix and therefore never ran. It was actually a test to check that a mutable input argument was never modified, so given recent SEV, it is an important type of test
- In one unit test, I switched to using an RNG seed, to prevent that this test might potentially be flaky / non-deterministic
- List comprehension was unnecessarily complex with brackets and parantheses

Reviewed By: Lorenzo-Perini

Differential Revision: D88744756
@meta-codesync
Copy link

meta-codesync bot commented Dec 10, 2025

This pull request has been merged in a853552.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants