Skip to content

Commit

Permalink
Update index.qmd
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 authored Sep 26, 2024
1 parent 728ef43 commit 611ba7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/notes/predictive-modeling/regression/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ However, for convenience, we will generally prefer to use corresponding regressi
from sklearn.metrics import r2_score, mean_absolute_error, mean_squared_error

r2 = r2_score(y_true, y_pred)
print("R2:", r2, 3)
print("R2:", r2)

mae = mean_absolute_error(y_true, y_pred)
print("MAE:", mae)
Expand Down

0 comments on commit 611ba7a

Please sign in to comment.