Skip to content

small change for nb if inf value plus adding linex in __all__ on top - #188

Merged
Saul (nasaul) merged 5 commits into
Nixtla:mainfrom
janrth:feature/nb_fix
Nov 7, 2025
Merged

Saul (nasaul) merged 5 commits into
Nixtla:mainfrom
janrth:feature/nb_fix

Conversation

@janrth

Copy link
Copy Markdown
Contributor

Solves issue #187.

The solution proposed here gives the user the opportunity to choose between the standard way of calculation, which could result in inf, or to also re-write inf values to 0 (on top of just using fillna(0)).

Also linex was added to all on losses.py, because this was missing from last PR.

@nasaul Saul (nasaul) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove printing and use warnings.warn

Comment thread utilsforecast/losses.py Resolved
Comment thread utilsforecast/losses.py Resolved
@nasaul
Saul (nasaul) enabled auto-merge (squash) October 9, 2025 00:14
@nasaul
Saul (nasaul) enabled auto-merge (squash) November 7, 2025 01:39
@nasaul
Saul (nasaul) self-requested a review November 7, 2025 01:42
@nasaul
Saul (nasaul) merged commit 908367c into Nixtla:main Nov 7, 2025
17 of 18 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.

2 participants