Problem with Benchmark Creation after Upgrade to 0.3.1 #1264
-
Hi all, I did not experience this using avalanche-lib 0.2.1, so maybe there is an issue with the update? Here is the traceback: ---> 68 scenario = nc_benchmark( /usr/local/lib/python3.8/dist-packages/avalanche/benchmarks/generators/benchmark_generators.py in nc_benchmark(train_dataset, test_dataset, n_experiences, task_labels, shuffle, seed, fixed_class_order, per_exp_classes, class_ids_from_zero_from_first_exp, class_ids_from_zero_in_each_exp, one_dataset_per_exp, train_transform, eval_transform, reproducibility_data) /usr/local/lib/python3.8/dist-packages/avalanche/benchmarks/utils/utils.py in concat_datasets_sequentially(train_dataset_list, test_dataset_list) /usr/local/lib/python3.8/dist-packages/avalanche/benchmarks/utils/utils.py in (.0) AttributeError: 'AvalancheDataset' object has no attribute 'targets' EDIT: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jannishag, can you give more details on your data? Without knowing your dataset we can't say anything about the error.
We didn't remove the attribute, we made it optional. You can use |
Beta Was this translation helpful? Give feedback.
Hi @jannishag, can you give more details on your data? Without knowing your dataset we can't say anything about the error.
We didn't remove the attribute, we made it optional. You can use
avalanche.benchmarks.utils.make_classification_dataset
to easily instantiate datasets with class and task labels. This is equivalent to the oldAvalancheDataset
, while the newAvalancheDataset
is a generic object which doesn't necessarily havetargets
.