Skip to content

Commit

Permalink
replace RMSE calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Jan 20, 2024
1 parent 2509507 commit 6308149
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions skgstat/Variogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,15 +2278,7 @@ def rmse(self):
RMSE = \sqrt{\frac{\sum_{i=0}^{i=N(x)} (x-y)^2}{N(x)}}
"""
# get the deviations
experimental, model = self.model_deviations()

# get the sum of squares
rsum = np.nansum(np.fromiter(
map(lambda x, y: (x - y)**2, experimental, model), float)
)

return np.sqrt(rsum / len(model))
return self.root_mean_square

@property
def mse(self):
Expand Down

0 comments on commit 6308149

Please sign in to comment.