Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioCarta committed Oct 17, 2023
1 parent 7e1a301 commit 8626323
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions avalanche/benchmarks/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def as_avalanche_dataset(

def as_classification_dataset(
dataset: ISupportedClassificationDataset[T_co],
transform_groups: Optional[TransformGroups] = None
transform_groups: Optional[TransformGroups] = None,
) -> "TaskAwareClassificationDataset":
"""Converts a dataset with a `targets` field into an Avalanche ClassificationDataset."""
from avalanche.benchmarks.utils.classification_dataset import ClassificationDataset
Expand All @@ -193,9 +193,7 @@ def as_classification_dataset(
return dataset
da = DataAttribute(dataset.targets, "targets")
return ClassificationDataset(
[dataset],
transform_groups=transform_groups,
data_attributes=[da]
[dataset], transform_groups=transform_groups, data_attributes=[da]
)


Expand Down
5 changes: 5 additions & 0 deletions docker/Dockerfile_dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

ADD requirements.txt .

# RUN pip install virtualenv
# RUN python -m venv local_venv
# RUN source local_venv/bin/activate
RUN pip install -r requirements.txt

SHELL ["/bin/bash", "--login", "-c"]

0 comments on commit 8626323

Please sign in to comment.