mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-26 07:33:35 +00:00
Typo: dfference --> difference (I added an i)
This commit is contained in:
parent
a03b2eafc0
commit
c71471dc2f
@ -41,7 +41,7 @@ def rmse(predict, actual):
|
|||||||
actual = np.array(actual)
|
actual = np.array(actual)
|
||||||
|
|
||||||
difference = predict - actual
|
difference = predict - actual
|
||||||
square_diff = np.square(dfference)
|
square_diff = np.square(difference)
|
||||||
mean_square_diff = square_diff.mean()
|
mean_square_diff = square_diff.mean()
|
||||||
score = np.sqrt(mean_square_diff)
|
score = np.sqrt(mean_square_diff)
|
||||||
return score
|
return score
|
||||||
|
Loading…
x
Reference in New Issue
Block a user