Skip to content

Commit 3dedb5a

Browse files
committed
Merge branch 'release/v0.4.0'
2 parents 8dce84b + dc84ca4 commit 3dedb5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+6345
-1547
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.0
2+
current_version = 0.4.0
33
commit = False
44
tag = False
55
allow_dirty = False

.github/workflows/run-tests-workflow.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
workflow_call:
55
inputs:
66
tests_to_run:
7-
description: "Determines which tests to run using Tox. Should be one of: default, torch, notebooks"
7+
description: "Determines which tests to run using Tox. Should be one of: base, torch, notebooks"
88
type: string
9-
required: false
9+
required: true
10+
python_version:
11+
description: "Determines which Python version to use"
12+
type: string
13+
required: true
1014

1115
env:
1216
PY_COLORS: 1
@@ -18,10 +22,10 @@ jobs:
1822
- uses: actions/checkout@v3
1923
with:
2024
fetch-depth: 0
21-
- name: Set up Python 3.8
25+
- name: Set up Python ${{ inputs.python_version }}
2226
uses: actions/setup-python@v4
2327
with:
24-
python-version: 3.8
28+
python-version: ${{ inputs.python_version }}
2529
cache: 'pip'
2630
- name: Install Dev Requirements
2731
run: pip install -r requirements-dev.txt

.github/workflows/stale.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Close stale issues and PRs by externals'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v6
11+
with:
12+
only-labels: 'awaiting-reply'
13+
days-before-stale: 30
14+
days-before-close: 7
15+
exempt-all-assignees: true
16+
exempt-draft-pr: true
17+
stale-issue-message: 'Stale issue: awaiting OPs reply for 30 days'
18+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
19+
stale-issue-label: 'stale'
20+
stale-pr-message: 'Stale PR: awaiting OPs reply for 30 days'
21+
close-pr-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
22+
stale-pr-label: 'stale'

.github/workflows/tox.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run tests, build docs, publish to TestPyPI
22

33
on:
44
push:
5-
branches: [develop, main]
5+
branches: [develop, master]
66
pull_request:
77
branches: [develop]
88
workflow_dispatch:
@@ -71,22 +71,34 @@ jobs:
7171
path: ./docs/_build
7272
retention-days: 1
7373
base-tests:
74+
strategy:
75+
matrix:
76+
python_version: ["3.8", "3.9", "3.10"]
7477
name: Run base tests
7578
uses: ./.github/workflows/run-tests-workflow.yaml
7679
with:
7780
tests_to_run: base
81+
python_version: ${{ matrix.python_version }}
7882
needs: [lint]
7983
torch-tests:
84+
strategy:
85+
matrix:
86+
python_version: ["3.8", "3.9", "3.10"]
8087
name: Run tests that use PyTorch
8188
uses: ./.github/workflows/run-tests-workflow.yaml
8289
with:
8390
tests_to_run: torch
91+
python_version: ${{ matrix.python_version }}
8492
needs: [lint]
8593
notebook-tests:
94+
strategy:
95+
matrix:
96+
python_version: ["3.8", "3.9", "3.10"]
8697
name: Run notebook tests
8798
uses: ./.github/workflows/run-tests-workflow.yaml
8899
with:
89100
tests_to_run: notebooks
101+
python_version: ${{ matrix.python_version }}
90102
needs: [lint]
91103
push-docs-and-release-testpypi:
92104
name: Push Docs and maybe release Package to TestPyPI

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ pylint.html
138138

139139
# Saved data
140140
runs/
141+
data/models/

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## 0.4.0 - 🏭💥 New algorithms and more breaking changes
4+
5+
- GH action to mark issues as stale
6+
[PR #201](https://github.com/appliedAI-Initiative/pyDVL/pull/201)
7+
- Disabled caching of Utility values as well as repeated evaluations by default
8+
[PR #211](https://github.com/appliedAI-Initiative/pyDVL/pull/211)
9+
- Test and officially support Python version 3.9 and 3.10
10+
[PR #208](https://github.com/appliedAI-Initiative/pyDVL/pull/208)
11+
- **Breaking change:** Introduces a class ValuationResult to gather and inspect
12+
results from all valuation algorithms
13+
[PR #214](https://github.com/appliedAI-Initiative/pyDVL/pull/214)
14+
- Fixes bug in Influence calculation with multi-dimensional input and adds
15+
new example notebook
16+
[PR #195](https://github.com/appliedAI-Initiative/pyDVL/pull/195)
17+
- **Breaking change**: Passes the input to `MapReduceJob` at initialization,
18+
removes `chunkify_inputs` argument from `MapReduceJob`, removes `n_runs`
19+
argument from `MapReduceJob`, calls the parallel backend's `put()` method for
20+
each generated chunk in `_chunkify()`, renames ParallelConfig's `num_workers`
21+
attribute to `n_local_workers`, fixes a bug in `MapReduceJob`'s chunkification
22+
when `n_runs` >= `n_jobs`, and defines a sequential parallel backend to run
23+
all jobs in the current thread
24+
[PR #232](https://github.com/appliedAI-Initiative/pyDVL/pull/232)
25+
- **New method**: Implements exact and monte carlo Least Core for data valuation,
26+
adds `from_arrays()` class method to the `Dataset` and `GroupedDataset`
27+
classes, adds `extra_values` argument to `ValuationResult`, adds
28+
`compute_removal_score()` and `compute_random_removal_score()` helper functions
29+
[PR #237](https://github.com/appliedAI-Initiative/pyDVL/pull/237)
30+
- **New method**: Group Testing Shapley for valuation, from _Jia et al. 2019_
31+
[PR #240](https://github.com/appliedAI-Initiative/pyDVL/pull/240)
32+
- Fixes bug in ray initialization in `RayParallelBackend` class
33+
[PR #239](https://github.com/appliedAI-Initiative/pyDVL/pull/239)
34+
- Implements "Egalitarian Least Core", adds [cvxpy](https://www.cvxpy.org/) as a
35+
dependency and uses it instead of scipy as optimizer
36+
[PR #243](https://github.com/appliedAI-Initiative/pyDVL/pull/243)
37+
338
## 0.3.0 - 💥 Breaking changes
439

540
- Simplified and fixed powerset sampling and testing

0 commit comments

Comments
 (0)