Skip to content

Commit

Permalink
updated weighting arg in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasloveday committed Oct 20, 2023
1 parent 3652256 commit d611bd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/scores/continuous/standard_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def mse(
the squared error at each point (i.e. single-value comparison
against observed), and the forecast and observed dimensions
must match precisely.
weights: Not yet implemented. Allow weighted averaging (e.g. by
area, by latitude, by population, custom)
weights: Optionally provide an array for weighted averaging (e.g. by area, by latitude,
by population, custom)
Returns:
Union[xr.Dataset, xr.DataArray, pd.Dataframe, pd.Series]: An object containing
Expand Down Expand Up @@ -98,8 +98,8 @@ def rmse(
the absolute error at each point (i.e. single-value comparison
against observed), and the forecast and observed dimensions
must match precisely.
weights: Not yet implemented. Allow weighted averaging (e.g. by
area, by latitude, by population, custom)
weights: Optionally provide an array for weighted averaging (e.g. by area, by latitude,
by population, custom)
Returns:
An object containing
Expand Down Expand Up @@ -144,9 +144,8 @@ def mae(
as the forecast, and the errors will be the absolute error at each
point (i.e. single-value comparison against observed), and the
forecast and observed dimensions must match precisely.
weights:
Not yet implemented. Allow weighted averaging (e.g. by area, by
latitude, by population, custom).
weights: Optionally provide an array for weighted averaging (e.g. by area, by latitude,
by population, custom)
Returns:
By default an xarray DataArray containing
Expand Down
3 changes: 2 additions & 1 deletion src/scores/probability/crps_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def crps_cdf(
by taking the mean.
reduce_dims (Tuple[str]): dimensions to reduce in the output by taking the mean. All other dimensions are
preserved.
weights: Not yet implemented. Allow weighted averaging (e.g. by area, by latitude, by population, custom)
weights: Optionally provide an array for weighted averaging (e.g. by area, by latitude,
by population, custom)
include_components (bool): if True, include the under and over forecast components of
the score in the returned dataset.
Expand Down

0 comments on commit d611bd5

Please sign in to comment.