Skip to content

Conversation

@BrianSchiller
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 19, 2025 11:13
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 introduces three new algorithm selection methods based on pairwise ranking: APPS (Automatic Parallel Portfolio Selector), HARRIS (Hybrid Ranking and Regression Forests), and RPC (Ranking by Pairwise Comparison). These selectors expand the library's capabilities for algorithm portfolio selection and ranking-based approaches.

Key Changes:

  • Implementation of three novel selector classes with distinct selection strategies
  • Comprehensive test coverage for all three selectors with parametrized tests
  • Four example scripts demonstrating practical usage and evaluation scenarios

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
asf/selectors/parallel_portfolio_selector.py Implements APPS selector using bootstrap ensembles and Gaussian distribution overlap for parallel portfolio selection
asf/selectors/hybrid_decision_tree.py Implements HARRIS selector combining regression and ranking losses in decision tree ensembles
asf/selectors/rpc_selector.py Implements RPC selector using pairwise binary classification and Copeland scoring
asf/selectors/__init__.py Exports the three new selector classes for public API
test/selectors/test_selectors.py Adds comprehensive tests for all three selectors including edge cases and parameter variations
examples/selection/17_parallel_portfolio.py Demonstrates APPS usage with synthetic data and various p_intersection values
examples/selection/18_harris_selector.py Shows HARRIS functionality with different lambda parameters
examples/selection/19_rpc_selector.py Illustrates RPC for both single selection and parallel portfolios
examples/selection/20_apps_aslib_eval.py Provides cross-validation evaluation of APPS on ASlib benchmarks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 96.44970% with 12 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
asf/selectors/hybrid_decision_tree.py 96.98% 5 Missing ⚠️
asf/selectors/parallel_portfolio_selector.py 95.78% 4 Missing ⚠️
asf/selectors/rpc_selector.py 95.94% 3 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
+ Coverage   84.22%   84.79%   +0.56%     
==========================================
  Files          87       90       +3     
  Lines        6943     7281     +338     
==========================================
+ Hits         5848     6174     +326     
- Misses       1095     1107      +12     
Flag Coverage Δ
full 84.79% <96.44%> (+0.56%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
asf/selectors/__init__.py 100.00% <100.00%> (ø)
asf/selectors/rpc_selector.py 95.94% <95.94%> (ø)
asf/selectors/parallel_portfolio_selector.py 95.78% <95.78%> (ø)
asf/selectors/hybrid_decision_tree.py 96.98% <96.98%> (ø)

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