Skip to content

Commit

Permalink
Reduced deprecation warnings on mlp
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Nov 6, 2024
1 parent 25e3efa commit 52d9dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spare_scores/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def get_stats(self, y: np.ndarray, y_hat: np.ndarray) -> None:
else:
self.stats["MAE"].append(metrics.mean_absolute_error(y, y_hat))
self.stats["RMSE"].append(
metrics.mean_squared_error(y, y_hat, squared=False)
metrics.root_mean_squared_error(y, y_hat)
)
self.stats["R2"].append(metrics.r2_score(y, y_hat))

Expand Down

0 comments on commit 52d9dbf

Please sign in to comment.