Skip to content

Commit 41d5b58

Browse files
committed
Adding RMSE - Root Mean Squared Error Loss function for ML Evaluation
1 parent 105990d commit 41d5b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_learning/loss_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def root_mean_squared_error(y_true, y_pred):
700700
"""
701701
if len(y_true) != len(y_pred):
702702
raise ValueError("Input arrays must have the same length.")
703-
y_true, y_pred = np.array(y_true), np.array(y_pred)
703+
y_true,y_pred = np.array(y_true), np.array(y_pred)
704704

705705
mse = np.mean((y_pred - y_true) ** 2)
706706
return np.sqrt(mse)

0 commit comments

Comments
 (0)