Skip to content

Add tide-forecasting example under gists/tides - #50

Merged
OVVO-Financial merged 2 commits into
mainfrom
claude/upbeat-pascal-fq49g2
Jun 18, 2026
Merged

Add tide-forecasting example under gists/tides#50
OVVO-Financial merged 2 commits into
mainfrom
claude/upbeat-pascal-fq49g2

Conversation

@OVVO-Financial

Copy link
Copy Markdown
Owner

Summary

Adds a self-contained example, gists/tides/, that reproduces Lord Kelvin's tide forecast from the raw water-level series using NNS.ARMA — no astronomy or hand-tuned harmonic constituents. Achieves R² ≈ 0.965 on a held-out two-week window.

Inspired by John Mount's Lord Kelvin, Data Scientist.

Contents

  • tides_nns.py — runnable script (~2 min, dominated by NNS.ARMA.optim).
  • README.md — historical framing, results, a note on the one non-obvious line (filter seasonal periods before slicing), and the full script embedded in a collapsible block for copy-paste replication.
  • tides_forecast.png — generated figure.

Notes

  • Passes ruff check (the example is covered by the repo-wide lint).
  • Pure example/docs — no changes to the nns package or tests.

🤖 Generated with Claude Code


Generated by Claude Code

claude added 2 commits June 18, 2026 15:03
Relocate the example from gist_tides/ to gists/tides/ and append the
complete tides_nns.py inside a collapsible block in the README so it can
be replicated without opening a second file.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MxVLKYqazC2uuAW3P3MbAm
Fix a grammar slip, reframe "gist" wording as "example" now that it lives
in the repo, and keep the savefig comment in sync between the script and
its embedded copy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MxVLKYqazC2uuAW3P3MbAm
@OVVO-Financial
OVVO-Financial merged commit d0be9e4 into main Jun 18, 2026
8 checks passed
@OVVO-Financial
OVVO-Financial deleted the claude/upbeat-pascal-fq49g2 branch June 18, 2026 15:13
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