bootstrap kfold - #133
Merged
Merged
bootstrap kfold#133
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved validation, checkpoint, inference, and GPU memory issues remain.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (7)
Persist the selected fold in checkpoints · New Reject ensemble inferencer for k-fold models · New Reject negative bootstrap seed values · New Reject negative KFold seed values · New Prevent exceeding automatic seed pool capacity · New Prevent zero-size bootstrap training subsets · New Derive omitted seed from the seeded NumPy RNG · New
What changed in this PR
Adds K-fold cross-validation and bootstrap ensemble training/inference support.
Changes:
- Implements K-fold and bootstrap strategies.
- Adds schemas, runtime validation, exports, and example configurations.
- Supports model selection, checkpointing, and ensemble inference.
| File | Description |
|---|---|
xanesnet/strategies/kfold.py |
K-fold training, model selection, and inference |
xanesnet/strategies/bootstrap.py |
Bootstrap ensemble implementation |
xanesnet/strategies/__init__.py |
Exports KFold |
xanesnet/serialization/runtime_contracts.py |
Runtime validation for inferencers |
xanesnet/schemas/strategies/strategy_types.schema.yaml |
Shared strategy schema types |
xanesnet/schemas/strategies/strategies.schema.yaml |
Strategy schema registration |
xanesnet/schemas/strategies/kfold.schema.yaml |
K-fold configuration schema |
xanesnet/schemas/strategies/bootstrap.schema.yaml |
Bootstrap configuration schema |
configs/mlp_kfold.yaml |
K-fold example configuration |
configs/mlp_bootstrap.yaml |
Bootstrap training example |
configs/mlp_bootstrap_infer.yaml |
Bootstrap inference example |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.


No description provided.