Pydvl

Latest version: v0.9.2

Safety actively analyzes 629503 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.9.2

Added

- Add progress bars to the computation of `LazyChunkSequence` and
`NestedLazyChunkSequence`
[PR 567](https://github.com/aai-institute/pyDVL/pull/567)
- Add a device fixture for `pytest`, which depending on the availability and
user input (`pytest --with-cuda`) resolves to cuda device
[PR 574](https://github.com/aai-institute/pyDVL/pull/574)

Fixed

- Fixed logging issue in decorator `log_duration`
[PR 567](https://github.com/aai-institute/pyDVL/pull/567)
- Fixed missing move of tensors to model device in `EkfacInfluence`
implementation [PR 570](https://github.com/aai-institute/pyDVL/pull/570)
- Missing move to device of `preconditioner` in `CgInfluence` implementation
[PR 572](https://github.com/aai-institute/pyDVL/pull/572)
- Raise a more specific error message, when a `RunTimeError` occurs in
`torch.linalg.eigh`, so the user can check if it is related to a known
issue
[PR 578](https://github.com/aai-institute/pyDVL/pull/578)
- Fix an edge case (empty train data) in the test
`test_classwise_scorer_accuracies_manual_derivation`, which resulted
in undefined behavior (`np.nan` to `int` conversion with different results
depending on OS)
[PR 579](https://github.com/aai-institute/pyDVL/pull/579)

Changed

- Changed logging behavior of iterative methods `LissaInfluence` and
`CgInfluence` to warn on not achieving desired tolerance within `maxiter`,
add parameter `warn_on_max_iteration` to set the level for this information
to `logging.DEBUG`
[PR 567](https://github.com/aai-institute/pyDVL/pull/567)

0.9.1

Fixed

- `FutureWarning` for `ParallelConfig` constantly raised without actually
instantiating the object
[PR 562](https://github.com/aai-institute/pyDVL/pull/562)

0.9.0

Added

- New method `MSR Banzhaf` with accompanying notebook, and new stopping
criterion `RankCorrelation`
[PR 520](https://github.com/aai-institute/pyDVL/pull/520)
- New method: `NystroemSketchInfluence`
[PR 504](https://github.com/aai-institute/pyDVL/pull/504)
- New preconditioned block variant of conjugate gradient
[PR 507](https://github.com/aai-institute/pyDVL/pull/507)
- Improvements to documentation: fixes, links, text, example gallery, LFS and
more [PR 532](https://github.com/aai-institute/pyDVL/pull/532),
[PR 543](https://github.com/aai-institute/pyDVL/pull/543)
- Glossary of data valuation and influence terms in the documentation
[PR 537](https://github.com/aai-institute/pyDVL/pull/537
- Documentation about writing notes for new features, changes or deprecations
[PR 557](https://github.com/aai-institute/pyDVL/pull/557)

Fixed

- Bug in `LissaInfluence`, when not using CPU device
[PR 495](https://github.com/aai-institute/pyDVL/pull/495)
- Memory issue with `CgInfluence` and `ArnoldiInfluence`
[PR 498](https://github.com/aai-institute/pyDVL/pull/498)
- Raising specific error message with install instruction, when trying to load
`pydvl.utils.cache.memcached` without `pymemcache` installed.
If `pymemcache` is available, all symbols from `pydvl.utils.cache.memcached`
are available through `pydvl.utils.cache`
[PR 509](https://github.com/aai-institute/pyDVL/pull/509)

Changed

- Add property `model_dtype` to instances of type `TorchInfluenceFunctionModel`
- Bump versions of CI actions to avoid warnings
[PR 502](https://github.com/aai-institute/pyDVL/pull/502)
- Add Python Version 3.11 to supported versions
[PR 510](https://github.com/aai-institute/pyDVL/pull/510)
- Documentation improvements and cleanup
[PR 521](https://github.com/aai-institute/pyDVL/pull/521),
[PR 522](https://github.com/aai-institute/pyDVL/pull/522)
- Simplified parallel backend configuration
[PR 549](https://github.com/mkdocstrings/mkdocstrings/issues/615)

0.8.1

Added

- Implement new method: `EkfacInfluence`
[PR 451](https://github.com/aai-institute/pyDVL/issues/451)
- New notebook to showcase ekfac for LLMs
[PR 483](https://github.com/aai-institute/pyDVL/pull/483)
- Implemented exact games in Castro et al. 2009 and 2017
[PR 341](https://github.com/appliedAI-Initiative/pyDVL/pull/341)

Fixed

- Bug in using `DaskInfluenceCalcualator` with `TorchnumpyConverter`
for single dimensional arrays
[PR 485](https://github.com/aai-institute/pyDVL/pull/485)
- Fix implementations of `to` methods of `TorchInfluenceFunctionModel`
implementations [PR 487](https://github.com/aai-institute/pyDVL/pull/487)
- Fixed bug with checking for converged values in semivalues
[PR 341](https://github.com/appliedAI-Initiative/pyDVL/pull/341)

Changed

- Add applications of data valuation section, display examples more prominently,
make all sections visible in table of contents, use mkdocs material cards
in the home page [PR 492](https://github.com/aai-institute/pyDVL/pull/492)

0.8.0

Added

- New cache backends: InMemoryCacheBackend and DiskCacheBackend
[PR 458](https://github.com/aai-institute/pyDVL/pull/458)
- New influence function interface `InfluenceFunctionModel`
- Data parallel computation with `DaskInfluenceCalculator`
[PR 26](https://github.com/aai-institute/pyDVL/issues/26)
- Sequential batch-wise computation and write to disk with
`SequentialInfluenceCalculator`
[PR 377](https://github.com/aai-institute/pyDVL/issues/377)
- Adapt notebooks to new influence abstractions
[PR 430](https://github.com/aai-institute/pyDVL/issues/430)

Changed

- Refactor and simplify caching implementation
[PR 458](https://github.com/aai-institute/pyDVL/pull/458)
- Simplify display of computation progress
[PR 466](https://github.com/aai-institute/pyDVL/pull/466)
- Improve readme and explain better the examples
[PR 465](https://github.com/aai-institute/pyDVL/pull/465)
- Simplify and improve tests, add CodeCov code coverage
[PR 429](https://github.com/aai-institute/pyDVL/pull/429)
- **Breaking Changes**
- Removed `compute_influences` and all related code.
Replaced by new `InfluenceFunctionModel` interface. Removed modules:
- influence.general
- influence.inversion
- influence.twice_differentiable
- influence.torch.torch_differentiable

Fixed
- Import bug in README [PR 457](https://github.com/aai-institute/pyDVL/issues/457)

0.7.1

Added

- New method: Class-wise Shapley values
[PR 338](https://github.com/aai-institute/pyDVL/pull/338)
- New method: Data-OOB by BastienZim
[PR 426](https://github.com/aai-institute/pyDVL/pull/426),
[PR $431](https://github.com/aai-institute/pyDVL/pull/431)
- Added `AntitheticPermutationSampler`
[PR 439](https://github.com/aai-institute/pyDVL/pull/439)
- Faster semi-value computation with per-index check of stopping criteria (optional)
[PR 437](https://github.com/aai-institute/pyDVL/pull/437)

Fixed

- Fix initialization of `data_names` in `ValuationResult.zeros()`
[PR 443](https://github.com/aai-institute/pyDVL/pull/443)

Changed

- No longer using docker within tests to start a memcached server
[PR 444](https://github.com/aai-institute/pyDVL/pull/444)
- Using pytest-xdist for faster local tests
[PR 440](https://github.com/aai-institute/pyDVL/pull/440)
- Improvements and fixes to notebooks
[PR 436](https://github.com/aai-institute/pyDVL/pull/436)
- Refactoring of parallel module. Old imports will stop working in v0.9.0
[PR 421](https://github.com/aai-institute/pyDVL/pull/421)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.