Skip to content

Conversation

MartinoMensio
Copy link
Contributor

@MartinoMensio MartinoMensio commented Jun 7, 2024

Description

This PR fixes an issue that occurrs when max_prediction_length=1: new matplotlib versions do not allow negative yerr in the errorbar, resulting in ValueError: 'yerr' must not contain negative values.

See related issues for full stack traces.
I tested the fix locally and everything seems fine

fixes #1145

Checklist

Make sure to have fun coding!

errorbar yerr needs to be always positive in the new matplotlib versions

Relates to: sktime#1571 sktime#1145
@freefish1218
Copy link

That's great! Looking forward to it. Looking forward to updating the new version!

@kevintpd
Copy link

Thanks!!!You solve my problem!

@MartinoMensio
Copy link
Contributor Author

Just updated from main to make it easy to merge (if anyone reviews it)

@kevintpd
Copy link

kevintpd commented Mar 20, 2025 via email

Copy link
Member

@fnhirwa fnhirwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @MartinoMensio

Nice catch😊, will merge once all tests are passing.

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@4d54ad6). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1579   +/-   ##
=======================================
  Coverage        ?   86.75%           
=======================================
  Files           ?       46           
  Lines           ?     5301           
  Branches        ?        0           
=======================================
  Hits            ?     4599           
  Misses          ?      702           
  Partials        ?        0           
Flag Coverage Δ
cpu 86.75% <ø> (?)
pytest 86.75% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fnhirwa fnhirwa changed the title fix absolute errorbar [BUG] fix absolute errorbar Mar 20, 2025
@fnhirwa fnhirwa merged commit 7d64fce into sktime:main Mar 20, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plot_prediction errorbar error
4 participants