Skip to content

Commit 49a95a9

Browse files
committed
[skip ci] Update docs and CHANGELOG.md
1 parent 5d0b3a1 commit 49a95a9

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

CHANGELOG.md

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

3+
## Unreleased
4+
5+
### Added
6+
7+
- Support for `torch.Tensor` as underlying data type in `Dataset` and
8+
`GroupedDataset`
9+
[PR #673](https://github.com/aai-institute/pyDVL/pull/673)
10+
- Support for pytorch models in most valuation methods when wrapped in
11+
classes implementing the protocol `TorchSupervisedModel`, e.g. by using
12+
[skorch.NeuralNetClassifier](https://skorch.readthedocs.io/en/stable/classifier.html)
13+
models
14+
[PR #673](https://github.com/aai-institute/pyDVL/pull/673)
15+
16+
### Fixed
17+
18+
- Issues with `Dataset` indexing
19+
[PR #673](https://github.com/aai-institute/pyDVL/pull/673)
20+
21+
### Changed
22+
23+
324
## v0.10.0 - 💥📚🐞🆕 New valuation interface, improved docs, new methods, breaking changes and tons of improvements
425

526

docs/value/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ tensors for data valuation. The implementation follows these key principles:
127127
1. **Type Preservation**: The valuation methods maintain the input data type
128128
throughout computations, whether you provide NumPy arrays or PyTorch tensors
129129
when constructing the [Dataset][pydvl.valuation.dataset.Dataset].
130-
2. **Transparent Usage**: The API remains the same regardless of the input type -
130+
2. **Transparent Usage**: The API remains the same regardless of the input type,
131131
simply provide your data as tensors. The main difference is that the torch
132132
model must be wrapped in a class compatible with the protocol
133133
[TorchSupervisedModel][pydvl.valuation.types.TorchSupervisedModel].
@@ -139,7 +139,9 @@ tensors for data valuation. The implementation follows these key principles:
139139
are entirely compatible with pyDVL.
140140
3. **Consistent Indexing**: Internally, indices are always managed as NumPy
141141
arrays for consistency and compatibility, but the actual data operations
142-
preserve tensor types when provided.
142+
preserve tensor types when provided. In particular, samplers always return
143+
NumPy arrays, and the [Dataset][pydvl.valuation.dataset.Dataset] class
144+
uses NumPy arrays for indexing.
143145
4. [ValuationResult][pydvl.valuation.result.ValuationResult] objects always
144146
contain NumPy arrays.
145147

0 commit comments

Comments
 (0)