mlxtend icon indicating copy to clipboard operation
mlxtend copied to clipboard

Fix incorrect R2 * -1 in "Example 4 – Regression and Adjusted R2" print() examples and modernize f-strings

Open sachinn854 opened this issue 1 year ago β€’ 2 comments

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! πŸš€

sachinn854 avatar Dec 03 '25 08:12 sachinn854

Check out this pull request onΒ  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Hi πŸ‘‹ just checking in β€” please let me know if any changes are needed.
Happy to update the PR if required!

sachinn854 avatar Dec 10 '25 17:12 sachinn854