Skip to content

Move coreset evaluation and weighting to their interfaces - #1239

Open
sylvesterkaczmarek wants to merge 1 commit into
gchq:mainfrom
sylvesterkaczmarek:feature/1023-coreset-operations
Open

sylvesterkaczmarek wants to merge 1 commit into
gchq:mainfrom
sylvesterkaczmarek:feature/1023-coreset-operations

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Type

Feature and refactoring.

Description

Addresses #1023 by adding Metric.compute_on_coreset and WeightsOptimiser.solve_on_coreset. Immutable with_weights methods keep weight storage in each coreset representation. The new interfaces preserve point order, subset indices, supervision and concrete coreset types, and forward computation options.

Repository examples, benchmark code and documentation use the new interfaces. compute_metric and solve_weights remain as deprecated compatibility wrappers, with removal planned for 2.0.0.

Validation

  • Focused coreset/weight suites: 75 passed.
  • Full current unit suite: 1,853 passed, 19 skipped.
  • Complete current pre-commit suite passed, including Ruff, Pyright, Pylint, cspell, Pyroma and formatting.
  • Sphinx HTML build passed with -E -n -W.
  • git diff --check passed.

GPU tests were not run.

Compatibility

Existing calls still work and emit migration warnings. Custom coreset classes can implement with_weights to use the new optimiser interface. Changelog and migration examples are included.

@sylvesterkaczmarek
sylvesterkaczmarek force-pushed the feature/1023-coreset-operations branch from dcca344 to 1775266 Compare September 23, 2026 19:28
@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

Rebased onto current main and resolved the changelog conflict while preserving both upstream and #1023 entries. Focused coreset/weight tests pass 75/75; the full current unit suite passes 1,853 tests with 19 skipped; the complete pre-commit stack and warning-clean Sphinx build also pass. The branch is now one signed commit, 0 behind and mergeable. Fresh workflows are awaiting maintainer approval.

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

@tm91236 This remains 0 behind and mergeable on the exact validated head. Focused coreset/weight tests pass 75/75, the full unit suite passes 1,853 tests with 19 skipped, and complete pre-commit plus warning-clean Sphinx validation already passed. The only current GitHub-side blocker is maintainer approval of the fork-triggered Actions, which are all sitting at action_required. Ready for review once those checks are allowed to run.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
@sylvesterkaczmarek
sylvesterkaczmarek force-pushed the feature/1023-coreset-operations branch from 1775266 to 04f280d Compare September 30, 2026 17:17
@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

Hi maintainers, following up on this PR as it hasn’t had a maintainer review yet. The implementation and local validation are documented above, while the hosted workflows are still waiting for maintainer approval. Could someone approve the workflows and review the PR when convenient? Happy to address any feedback.

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

Any feedback on the coreset interface refactor? Let me know whether anything needs changing. The workflows still need maintainer approval.

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