task_labels experience attribute type fix: now it is a list, not a set #1646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, I found a bug in the
task_incremental_benchmark
generator. Even with the MNIST example in the notebook "03_benchmarks.ipynb"exp.task_labels
is a set not a list as the train method expects.I think the problem is here, where we convert the set in the list only for the
task_label
attribute:avalanche/avalanche/benchmarks/scenarios/task_aware.py
Lines 89 to 105 in 0d6f715
The set is never converted into a list for the attribute task_labels and in in this method we use the indexing which is not supported by a set:
avalanche/avalanche/evaluation/metric_utils.py
Lines 249 to 275 in 0d6f715
Below you can find the small fix + an assert I added in the TaskAware tests.