Skip to content

Guard against division by zero in LOOCV computation#7

Merged
soodoku merged 1 commit intomainfrom
codex/fix-zero-division-errors-in-calculations
Aug 17, 2025
Merged

Guard against division by zero in LOOCV computation#7
soodoku merged 1 commit intomainfrom
codex/fix-zero-division-errors-in-calculations

Conversation

@soodoku
Copy link
Copy Markdown
Contributor

@soodoku soodoku commented Aug 17, 2025

Summary

  • Avoid zero divisions in Nadaraya–Watson LOOCV by substituting zero denominators with epsilon
  • Use the safe denominator consistently in first and second derivative estimates

Testing

  • python -m pytest

https://chatgpt.com/codex/tasks/task_e_68a231a0fcb8832f8c7d5711039bd349

@soodoku soodoku merged commit 7cc36cf into main Aug 17, 2025
1 of 4 checks passed
@soodoku soodoku deleted the codex/fix-zero-division-errors-in-calculations branch August 17, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant