Skip to content

Commit

Permalink
Remove equations from the docstring table
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Mar 25, 2019
1 parent 70dcd09 commit 29064f1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
17 changes: 12 additions & 5 deletions pysteps/verification/detcontscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def det_cont_fct(pred, obs, scores="", axis=None, conditioning=None):
+------------+--------------------------------------------------------+
| corr_s* | spearman's correlation coefficient (rank correlation) |
+------------+--------------------------------------------------------+
| DRMSE | debiased root mean squared error, i.e. |
| | :math:`DRMSE = \\sqrt{RMSE - ME^2}` |
| DRMSE | debiased root mean squared error |
+------------+--------------------------------------------------------+
| MAE | mean absolute error |
+------------+--------------------------------------------------------+
Expand All @@ -57,8 +56,7 @@ def det_cont_fct(pred, obs, scores="", axis=None, conditioning=None):
| RMSE | root mean squared error |
+------------+--------------------------------------------------------+
| RV | reduction of variance |
| | (Brier Score, Nash-Sutcliffe Efficiency), i.e. |
| | :math:`RV = 1 - \\frac{MSE}{s^2_o}` |
| | (Brier Score, Nash-Sutcliffe Efficiency) |
+------------+--------------------------------------------------------+
| scatter* | half the distance between the 16% and 84% percentiles |
| | of the weighted cumulative error distribution, |
Expand Down Expand Up @@ -88,8 +86,17 @@ def det_cont_fct(pred, obs, scores="", axis=None, conditioning=None):
Note
----
Score names denoted by * can only be computed offline.\n
Multiplicative scores can be computed by passing log-tranformed values.
Note that "scatter" is the only score that will be computed in dB units of
the multiplicative error, ie. :math:`10\\log_10(x_p/x_o).
The debiased RMSE is computed as :math:`DRMSE = \\sqrt{RMSE - ME^2}`.
The reduction of variance score is computed as
:math:`RV = 1 - \\frac{MSE}{s^2_o}`.
Score names denoted by * can only be computed offline.
References
----------
Expand Down
21 changes: 16 additions & 5 deletions pysteps/verification/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ def get_method(name, type="deterministic"):
+------------+--------------------------------------------------------+
| corr_p | pearson's correleation coefficien (linear correlation) |
+------------+--------------------------------------------------------+
| corr_s | spearman's correlation coefficient (rank correlation) |
| corr_s* | spearman's correlation coefficient (rank correlation) |
+------------+--------------------------------------------------------+
| DRMSE | debiased root mean squared error, i.e. |
| | :math:`DRMSE = \\sqrt{RMSE - ME^2}` |
| DRMSE | debiased root mean squared error |
+------------+--------------------------------------------------------+
| MAE | mean absolute error of residuals |
+------------+--------------------------------------------------------+
Expand All @@ -64,8 +63,7 @@ def get_method(name, type="deterministic"):
| RMSE | root mean squared error |
+------------+--------------------------------------------------------+
| RV | reduction of variance |
| | (Brier Score, Nash-Sutcliffe Efficiency), i.e. |
| | :math:`RV = 1 - \\frac{MSE}{s^2_o}` |
| | (Brier Score, Nash-Sutcliffe Efficiency) |
+------------+--------------------------------------------------------+
| scatter* | half the distance between the 16% and 84% percentiles |
| | of the weighted cumulative error distribution, |
Expand Down Expand Up @@ -107,6 +105,19 @@ def get_method(name, type="deterministic"):
type : {'deterministic', 'ensemble', 'probabilistic'}, optional
Type of the verification method.
Note
----
Multiplicative scores can be computed by passing log-tranformed values.
Note that "scatter" is the only score that will be computed in dB units of
the multiplicative error, ie. :math:`10\\log_10(x_p/x_o).
The debiased RMSE is computed as :math:`DRMSE = \\sqrt{RMSE - ME^2}`.
The reduction of variance score is computed as
:math:`RV = 1 - \\frac{MSE}{s^2_o}`.
Score names denoted by * can only be computed offline.
References
----------
Expand Down

0 comments on commit 29064f1

Please sign in to comment.