avalanche.benchmarks.scenarios.ClassificationStream

class avalanche.benchmarks.scenarios.ClassificationStream(name: str, benchmark: TGenericCLClassificationScenario, *, slice_ids: List[int] | None = None)[source]
__init__(name: str, benchmark: TGenericCLClassificationScenario, *, slice_ids: List[int] | None = None)[source]

Methods

__init__(name, benchmark, *[, slice_ids])

count(value)

drop_previous_experiences(to_exp)

Drop the reference to experiences up to a certain experience ID (inclusive).

index(value, [start, [stop]])

Raises ValueError if the value is not present.

Attributes

scenario

This property is DEPRECATED, use self.benchmark instead.

name

The name of the stream (for instance: "train", "test", "valid", ...).

benchmark

A reference to the benchmark.

slice_ids

Describes which experiences are contained in the current stream slice.