Fix incorrect R2 * -1 in "Example 4 β Regression and Adjusted R2" print() examples and modernize f-strings
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! π
Check out this pull request onΒ ![]()
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!