Skip to content

Conversation

@sachinn854
Copy link

Hi maintainer πŸ‘‹

This PR updates the documentation in Example 4:

βœ… Removed incorrect RΒ² multiplication by βˆ’1 in print() examples
βœ… Fixed reused/incorrect code from the previous example
βœ… Modernized old-style string formatting to f-strings for clarity
βœ… Optional: Casted num_examples to int for correctness & readability

Fixes #1118

All changes were verified locally for syntax & output correctness.

Let me know if any further improvement is needed.

Thanks! πŸš€

Copilot AI review requested due to automatic review settings December 3, 2025 07:49
@review-notebook-app
Copy link

Check out this pull request onΒ  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copilot finished reviewing on behalf of sachinn854 December 3, 2025 07:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes documentation errors in Example 4 (Regression and Adjusted RΒ²) of the ExhaustiveFeatureSelector notebook. The changes address an incorrect RΒ² score multiplication bug, modernize string formatting, and improve type safety.

Key changes:

  • Fixed incorrect RΒ² multiplication by -1 in print statements
  • Modernized old-style % string formatting to f-strings
  • Added int() casting for num_examples parameter

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sachinn854 sachinn854 closed this Dec 3, 2025
@sachinn854 sachinn854 deleted the fix-regression-adjr2-doc branch December 3, 2025 07:52
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.

Example 4 - Regression and Adjusted R2 - error in print() examples

1 participant