Skip to content

Commit

Permalink
Merge pull request #71 from UBC-MDS/feedback_grace
Browse files Browse the repository at this point in the history
fix: Feedback addressed by Zhiwei Zhang, addressing TinLattNandar review
  • Loading branch information
yajing03 authored Feb 2, 2025
2 parents ae31e9d + d20a8f5 commit 1d28f3d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 25 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matrics_calculator provides a lightweight and easy-to-use alternative for calcul
## Features

This package consists of four functions:
- `r_squared`:
- `r2`:
- This function calculates the R-squared of the model, which measures how well the model explains the variation in the data.
- `mean_absolute_error`:
- This function finds the average difference between predicted and actual values.
Expand Down Expand Up @@ -55,9 +55,9 @@ from matrics_calculator.MAPE import mean_absolute_percentage_error

2. Prepare Your Data Ensure you have two arrays:

`y_true`: The actual target values
`y_true`: The actual target values.

`y_pred`: The predicted values from your regression model
`y_pred`: The predicted values from your regression model.

Example:
```bash
Expand Down
Loading

0 comments on commit 1d28f3d

Please sign in to comment.