-
-
Notifications
You must be signed in to change notification settings - Fork 48.6k
Description
Feature description
Feature Description
I would like to add RMSE and Log-Cosh Loss Function in Machine learning folder in loss_function.py
RMSE
RMSE (Root Mean squared Error) metric to measure the difference between predicted and actual values in regression models.
It represents the square root of the average squared differences between predicted values (y_pred) and actual values (y_true)
It is given by :
RMSE =
Log-Cosh Loss function
Log-Cosh is the logarithm of the hyperbolic cosine of the prediction error. It is very similar to Mean Squared Error but is **less sensitive to outliers.
It represents the square root of the average squared differences between predicted values (y_pred) and actual values (y_true).
it is given by:
LCL =
Benefits of Adding RMSE and Log-Cosh
- Squaring the error penalizes large deviations more heavily than small ones.
- Useful when outliers are important and you want the model to focus on minimizing them.
- Behaves like MSE for small errors (smooth) and like MAE for large errors (less sensitive to extreme outliers).
- Helps prevent the model from being overly influenced by rare extreme values.