avalanche.benchmarks.scenarios.ClassificationStream

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

Creates an instance of a experience stream.

Parameters:
  • name – The name of the stream.

  • exps_iter – The iterable from which experiences will be obtained.

  • benchmark – The benchmarks defining this stream.

  • set_stream_info – If True, will set the current_experience and origin_stream fields on experience objects before returning them. Defaults to True.

Methods

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

Creates an instance of a experience stream.

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

slice_ids

Describes which experiences are contained in the current stream slice.

name

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

exps_iter

The iterable from which experiences will be obtained.

benchmark

A reference to the benchmark.

set_stream_info

If True, will set the current_experience and origin_stream fields on experience objects before returning them.