Draft
Conversation
Implements Leave-Future-Out Cross-Validation for time series models using forward-mode validation with Pareto-Smoothed Importance Sampling (PSIS) approximation to reduce computational cost. Supports both exact (always refit) and approximate methods. - lfo_cv.py: Main LFO-CV function with approx/exact methods - helper_lfo_cv.py: Helper functions for input validation, step computation, and result combination
Exports lfo_cv at package level and adds LFO-CV support to compare() function with proper validation to prevent comparing LFO-CV with incompatible methods (LOO-CV, K-fold-CV). - __init__.py files: Export lfo_cv function - compare.py: Add LFO-CV validation in _calculate_ics
Adds mock SamplingWrapper fixtures for LFO-CV testing along with comprehensive unit tests for main function and helper utilities. - conftest.py: LFO-CV fixtures (data_with_time, mock_lfo_wrapper, etc.) - test_lfo_cv.py: Unit tests for lfo_cv function - test_helper_lfo_cv.py: Unit tests for helper functions
Author
|
@jordandeklerk I initiated a PR. I'm also very busy, but wanted to get past the "empty page" blocker and have a start for the PR :) |
Documentation build overview
Show files changed (16 files in total): 📝 15 modified | ➕ 0 added | ➖ 1 deleted
|
Member
Awesome, I will take a look soon! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a work in progress PR for adding approximate leave-future-out cross validation (LFO-CV) using pareto-smoothed importance sampling (PSIS).
The current implementation was planned by me and mostly implemented by Agentic assistance. I still need to personally go through it in detail.
This PR is related to issue #177