Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/least core #580

Merged
merged 111 commits into from
May 24, 2024
Merged

Refactor/least core #580

merged 111 commits into from
May 24, 2024

Conversation

janosg
Copy link
Collaborator

@janosg janosg commented May 8, 2024

Description

This PR refactors the least-core to make use of the new samplers in pydvl.valuation. The previously supported least-core methods are now just special cases: "exact" is obtained using a DeterministicUniformSampler; "montecarlo" is obtained using a UniformSampler.

Changes

Complete rewrite of the least-core code in pydvl.valuation. The old code remains unchanged in pydvl.value

Checklist

  • Wrote Unit tests (if necessary)
  • Updated Documentation (if necessary)
  • Updated Changelog
  • If notebooks were added/changed, added boilerplate cells are tagged with "tags": ["hide"] or "tags": ["hide-input"]

…ion/methods/_naive_least_core.py - rename file to target-name
…ion/methods/_naive_least_core.py - rename source-file to git-split-temp
…ion/methods/_naive_least_core.py - resolve conflict and keep both files
…ion/methods/_naive_least_core.py - restore name of source-file
…aluation/methods/_montecarlo_least_core.py - rename file to target-name
…aluation/methods/_montecarlo_least_core.py - rename source-file to git-split-temp
…aluation/methods/_montecarlo_least_core.py - resolve conflict and keep both files
…aluation/methods/_montecarlo_least_core.py - restore name of source-file
@janosg janosg requested a review from schroedk May 21, 2024 08:16
src/pydvl/valuation/methods/least_core.py Outdated Show resolved Hide resolved
src/pydvl/valuation/methods/least_core.py Outdated Show resolved Hide resolved
src/pydvl/valuation/methods/least_core.py Outdated Show resolved Hide resolved
src/pydvl/valuation/methods/least_core.py Outdated Show resolved Hide resolved
src/pydvl/valuation/methods/least_core.py Outdated Show resolved Hide resolved
src/pydvl/valuation/methods/least_core.py Show resolved Hide resolved
src/pydvl/valuation/samplers/base.py Outdated Show resolved Hide resolved
src/pydvl/valuation/samplers/base.py Show resolved Hide resolved
src/pydvl/valuation/samplers/utils.py Outdated Show resolved Hide resolved
@janosg janosg requested a review from schroedk May 24, 2024 14:20
@janosg janosg merged commit 4307246 into feature/refactor-value May 24, 2024
@janosg janosg deleted the refactor/least-core branch May 24, 2024 14:35
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.

None yet

3 participants