avalanche.benchmarks.scenarios.NIExperience
- class avalanche.benchmarks.scenarios.NIExperience(origin_stream: NIStream, 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: NIStream, current_experience: int)[source]
Creates a
NIExperienceinstance 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
NIExperienceinstance given the stream from this experience was taken and and the current experience ID.eval()Return inference experience.
logging()Return logging experience.
no_attribute_masking()train()Return training experience.
Attributes
are_attributes_maskedbenchmarkcurrent_experiencedatasetorigin_streamtask_labelThe task label.
task_labelsclasses_in_this_experienceThe list of classes in this experience
previous_classesThe list of classes in previous experiences
classes_seen_so_farList of classes of current and previous experiences
future_classesThe list of classes of next experiences