Skip to content

Commit

Permalink
pre-commit update
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Nov 6, 2024
1 parent 52d9dbf commit c078b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: pre-commit
on:
pull_request:
push:
branches: [main, fixing_issues]
branches: [main, fixing_issues, spiros-dev]

jobs:
pre-commit:
Expand Down
4 changes: 1 addition & 3 deletions spare_scores/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ def get_stats(self, y: np.ndarray, y_hat: np.ndarray) -> None:
self.stats["F1"].append(2 * precision * recall / (precision + recall))
else:
self.stats["MAE"].append(metrics.mean_absolute_error(y, y_hat))
self.stats["RMSE"].append(
metrics.root_mean_squared_error(y, y_hat)
)
self.stats["RMSE"].append(metrics.root_mean_squared_error(y, y_hat))
self.stats["R2"].append(metrics.r2_score(y, y_hat))

def output_stats(self) -> None:
Expand Down

0 comments on commit c078b16

Please sign in to comment.