ContinualAI / ContinualAI/avalanche

Storage policy's buffer doesn't keep the targets attribute

Open
#1,489 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.1k
Forks
321
PR merge metrics
No merged PRs in 30d

Description

All storage policies in Avalanche initialize their internal buffer with an empty dataset, i.e.:
```python
self._buffer: AvalancheDataset = concat_datasets([])
```
When a new dataset is used to update the current buffer, `self._buffer` is concatenated with the new dataset, and since it's a concatenation of an empty dataset with another dataset , the targets are not transferred in the case of classification datasets.

Is this a bug or is it the expected behavior?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.