diff --git a/skgstat/Variogram.py b/skgstat/Variogram.py index a90b24c..01f051e 100644 --- a/skgstat/Variogram.py +++ b/skgstat/Variogram.py @@ -2290,7 +2290,7 @@ def rmse(self): @property def mse(self): - r"""RMSE + r"""MSE Calculate the Mean squared error between the experimental variogram and the theoretical model values at corresponding lags. @@ -2383,6 +2383,7 @@ def nrmse(self): """ return self.rmse / np.nanmean(self.experimental) + @property def root_mean_square(self): """Root Mean Square (RMS) of the residuals @@ -2395,6 +2396,7 @@ def root_mean_square(self): Root Mean Square of the residuals. """ return np.sqrt(np.nanmean(np.square(self.model_residuals))) + @property def residual_sum_of_squares(self): """Residual Sum of Squares (RSS) @@ -2411,6 +2413,10 @@ def residual_sum_of_squares(self): """ return np.nansum(np.square(self.model_residuals)) + @property + def rss(self): + return self.residual_sum_of_squares + @property def nrmse_r(self): r"""NRMSE diff --git a/skgstat/tests/test_variogram.py b/skgstat/tests/test_variogram.py index ef10141..496ebd9 100644 --- a/skgstat/tests/test_variogram.py +++ b/skgstat/tests/test_variogram.py @@ -1196,6 +1196,11 @@ def test_mse(self): V = Variogram(self.c, self.v, n_lags=15) self.assertAlmostEqual(np.sqrt(V.mse), V.rmse, places=6) + + def test_rss(self): + V = Variogram(self.c, self.v, n_lags=15) + + self.assertAlmostEqual(V.rss, 357.76, places=2) def test_update_kwargs(self): V = Variogram(self.c, self.v, percentile=.3)