avalanche.benchmarks.scenarios.NIExperience

class avalanche.benchmarks.scenarios.NIExperience(origin_stream: ClassificationStream[NIExperience, NIScenario], current_experience: int)[source]

Defines a “New Instances” experience. It defines fields to obtain the current dataset and the associated task label. It also keeps a reference to the stream from which this experience was taken.

__init__(origin_stream: ClassificationStream[NIExperience, NIScenario], current_experience: int)[source]

Creates a NIExperience instance given the stream from this experience was taken and and the current experience ID.

Parameters
  • origin_stream – The stream from which this experience was obtained.

  • current_experience – The current experience ID, as an integer.

Methods

__init__(origin_stream, current_experience)

Creates a NIExperience instance given the stream from this experience was taken and and the current experience ID.

Attributes

scenario

This property is DEPRECATED, use self.benchmark instead.

task_label

The task label.

task_labels

This list will contain the unique task labels of the patterns contained in this experience.