avalanche.benchmarks.scenarios.ExperienceAttribute
- class avalanche.benchmarks.scenarios.ExperienceAttribute(value: TCov, use_in_train: bool = False, use_in_eval: bool = False)[source]
Experience attributes are used to define data belonging to an experience which may only be available at train or eval time.
For example, experiences often keep a reference to the entire stream, which should be accessible only by the loggers and evaluation system, but should never be used by the strategy in the train/eval loops.
- __init__(value: TCov, use_in_train: bool = False, use_in_eval: bool = False)[source]
Init.
- Parameters:
value – attribute value.
use_in_train – if True the attribute is available at training time.
use_in_eval – if True the attribute is available at evaluation time.
Methods
__init__
(value[, use_in_train, use_in_eval])Init.