Skip to content

Conversation

nathanielc
Copy link
Contributor

@nathanielc nathanielc commented Oct 31, 2022

Recently I discovered that the Holt Winters examples take > 10s to complete. This was suspicious so I investigated. I discovered that recent changes meant that the default epsilon and iteration values were not used. That is now fixed as the original limits are used. Tests are updated, it can be seen that the SSE increases a tiny bit as we are not working as hard to find a good fit, but things are running faster now too.

To be clear I am not worried about the runtime of the examples, rather these changes will have affected all users and by default were doing many iterations to find a very small epsilon (almost impossibly small). This change restores the original defaults which will work better for most users.

Additionally the old neldermead code is removed as it is no longer used.

Checklist

Dear Author 👋, the following checks should be completed (or explicitly dismissed) before merging.

  • ✏️ Write a PR description, regardless of triviality, to include the value of this PR
  • 🔗 Reference related issues
  • 🏃 Test cases are included to exercise the new code
  • 🧪 If new packages are being introduced to stdlib, link to Working Group discussion notes and ensure it lands under experimental/
  • 📖 If language features are changing, ensure docs/Spec.md has been updated

Dear Reviewer(s) 👋, you are responsible (among others) for ensuring the completeness and quality of the above before approval.

@nathanielc nathanielc requested a review from skartikey October 31, 2022 22:31
@nathanielc nathanielc requested a review from a team as a code owner October 31, 2022 22:31
@nathanielc nathanielc force-pushed the holtwinters-defaults branch from 359b278 to f0496bb Compare November 1, 2022 16:00
Recently I discovered that the Holt Winters examples take > 10s to
complete. This was suspicious so I investigated. I discovered that
recent changes meant that the default epsilon and iteration values
were not used. That is now fixed as the original limits are used.
Tests are updated, it can be seen that the SSE increases a tiny bit as
we are not working as hard to find a good fit, but things are running
faster now too.

Additionally the old neldermead code is removed as it is no longer used.
@nathanielc nathanielc force-pushed the holtwinters-defaults branch from f0496bb to 9ee154f Compare November 1, 2022 16:17
@nathanielc nathanielc merged commit 41b37b8 into master Nov 1, 2022
@nathanielc nathanielc deleted the holtwinters-defaults branch November 1, 2022 19:31
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