avalanche.benchmarks.scenarios.ClassificationExperience
- class avalanche.benchmarks.scenarios.ClassificationExperience(origin_stream: ClassificationStream[TClassificationExperience], current_experience: int)[source]
Definition of a learning experience based on a
GenericCLScenario
instance.This experience implementation uses the generic experience-patterns assignment defined in the
GenericCLScenario
instance. Instances of this class are usually obtained from a benchmark stream.- __init__(origin_stream: ClassificationStream[TClassificationExperience], current_experience: int)[source]
Creates an instance of a generic experience given the stream from this experience was taken 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 an instance of a generic experience given the stream from this experience was taken and the current experience ID.
eval
()Return inference experience.
logging
()Return logging experience.
no_attribute_masking
()train
()Return training experience.
Attributes
are_attributes_masked
benchmark
current_experience
dataset
origin_stream
task_label
The task label.
task_labels
classes_in_this_experience
The list of classes in this experience
previous_classes
The list of classes in previous experiences
classes_seen_so_far
List of classes of current and previous experiences
future_classes
The list of classes of next experiences