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 08:03
@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 08:04
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 issues in Example 4 of the ExhaustiveFeatureSelector notebook by correcting incorrect R² score handling and modernizing code formatting.

Key changes:

  • Removed erroneous multiplication by -1 when printing R² scores
  • Modernized string formatting from old-style to f-strings
  • Added explicit int casting for num_examples calculation to ensure correctness

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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