We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more legacy nonsense. The functions geometric_mean_absolute_error and geometric_mean_squared_error contain untested code
np.abs(errors), sample_weight=horizon_weight, axis=0, )
but the actual signature of _weighted_geometric_mean is def _weighted_geometric_mean(y, weights=None, axis=None): (see #2134)
def _weighted_geometric_mean(y, weights=None, axis=None):
i.e. the parameter name is wrong! doctests all skipped for some reason.
import numpy as np from aeon.performance_metrics.forecasting import \ geometric_mean_squared_error as gmse y_true = np.array([3, -0.5, 2, 7, 2]) y_pred = np.array([2.5, 0.0, 2, 8, 1.25]) gmse(y_true, y_pred, horizon_weight=[0.5,0.3,0.2, .1,.1])
runs
C:\Code\aeon\venv\Scripts\python.exe C:\Code\aeon\aeon\local\debug.py Traceback (most recent call last): File "C:\Code\aeon\aeon\local\debug.py", line 6, in <module> gmse(y_true, y_pred, horizon_weight=[0.5,0.3,0.2, .1,.1]) File "C:\Code\aeon\aeon\performance_metrics\forecasting\_functions.py", line 1427, in geometric_mean_squared_error output_errors = _weighted_geometric_mean( TypeError: _weighted_geometric_mean() got an unexpected keyword argument 'sample_weight'
No response
The text was updated successfully, but these errors were encountered:
TonyBagnall
Successfully merging a pull request may close this issue.
Describe the bug
more legacy nonsense. The functions geometric_mean_absolute_error and geometric_mean_squared_error contain untested code
but the actual signature of _weighted_geometric_mean is
def _weighted_geometric_mean(y, weights=None, axis=None):
(see #2134)i.e. the parameter name is wrong! doctests all skipped for some reason.
Steps/Code to reproduce the bug
Expected results
runs
Actual results
Versions
No response
The text was updated successfully, but these errors were encountered: