Skip to content
New issue

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

&marrov [BUG] fix Settingwithcopywarning when using custom error metric in evaluate #4294

Merged
merged 2 commits into from Mar 14, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Mar 6, 2023

Fixes #4292

@marrov, thanks, I think you've correctly identified the source location of the bug!

I'm not quite clear why we are dealing with a DataFrame that has repeated index (zero??), but I've fixed it now by chaging the chained double access to single loc access with two indices, and ensuring the multiple indexp roblem does not occur.

Perhaps @topher-lo has a piece of wisdom to offer what eactly was happening there with the index...

@fkiraly fkiraly added module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting bugfix Fixes a known bug or removes unintended behavior module:metrics&benchmarking metrics and benchmarking modules labels Mar 6, 2023
@fkiraly fkiraly merged commit 22b1380 into main Mar 14, 2023
@fkiraly fkiraly deleted the settingwithcopywarning branch March 14, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug or removes unintended behavior module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting module:metrics&benchmarking metrics and benchmarking modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] SettingWithCopyWarning when using custom error metric with evaluate
1 participant