Skip to content

Comments

Add cross validation and cross validation accessories.#69

Draft
dcelisgarza wants to merge 64 commits intomainfrom
dev
Draft

Add cross validation and cross validation accessories.#69
dcelisgarza wants to merge 64 commits intomainfrom
dev

Conversation

@dcelisgarza
Copy link
Owner

No description provided.

dcelisgarza and others added 30 commits February 5, 2026 17:19
Removed commented-out code and unused variables to clean up the function logic.
… fixed or variable, in order to allow for cross validation to pass on current weights, allow fallbacks to be optimisation results
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds cross validation functionality and related accessories to PortfolioOptimisers.jl. The implementation includes multiple cross validation strategies (KFold, Combinatorial, WalkForward, MultipleRandomised), prediction and scoring infrastructure, and integration with existing optimisation estimators.

Changes:

  • Adds 9 new cross validation files implementing various CV strategies and scoring mechanisms
  • Implements factory pattern and needs_previous_weights tracking across all optimisation estimators
  • Renames ReturnRiskMeasureExpectedReturn and ReturnRiskRatioRiskMeasureExpectedReturnRiskRatio
  • Adds comprehensive test coverage with new test data files
  • Updates documentation, examples, and dependency versions

Reviewed changes

Copilot reviewed 115 out of 137 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/20_Optimisation/02_CrossValidation/*.jl 9 new files implementing CV base types, KFold, Combinatorial, WalkForward, MultipleRandomised, validation, scoring, and wrappers
src/20_Optimisation/*Optimisation.jl Added factory methods and needs_previous_weights tracking to all optimisation estimators
src/19_RiskMeasures/*.jl Renamed risk measures, added MeanReturnRiskRatio, updated expected_risk functions
test/*.jl Updated tests with new CV test cases and needs_previous_weights assertions
test/assets/*.csv.gz New binary test data files for CV predictions
examples/.jl, docs/.md Updated risk measure names throughout
Project.toml Version bump to 0.16.0, added Combinatorics dependency

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.

1 participant