class_docstr: Base implementation of a Continual Learning classification benchmark.
  
  For more info, please refer to the base class :class:`DatasetScenario`.
docstr: Creates an instance a Continual Learning object classification
  benchmark.
  
  :param stream_definitions: The definition of the streams. For a more
      precise description, please refer to :class:`DatasetScenario`
  :param n_classes: The number of classes in the scenario. Defaults to
      None.
  :param stream_factory: A callable that, given the name of the
      stream and the benchmark instance, returns a stream instance.
      Defaults to the constructor of :class:`ClassificationStream`.
  :param experience_factory: A callable that, given the
      stream instance and the experience ID, returns an experience
      instance.
      Defaults to the constructor of :class:`ClassificationExperience`.
  :param complete_test_set_only: If True, the test stream will contain
      a single experience containing the complete test set. This also
      means that the definition for the test stream must contain the
      definition for a single experience.
docstr_tok: ["Creates","an","instance","a","Continual","Learning","object","classification","benchmark",".",":","param","stream_definitions",":","The","definition","of","the","streams",".","For","a","more","precise","description",",","please","refer","to",":","class",":","`","DatasetScenario","`",":","param","n_classes",":","The","number","of","classes","in","the","scenario",".","Defaults","to","None",".",":","param","stream_factory",":","A","callable","that",",","given","the","name","of","the","stream","and","the","benchmark","instance",",","returns","a","stream","instance",".","Defaults","to","the","constructor","of",":","class",":","`","ClassificationStream","`",".",":","param","experience_factory",":","A","callable","that",",","given","the","stream","instance","and","the","experience","ID",",","returns","an","experience","instance",".","Defaults","to","the","constructor","of",":","class",":","`","ClassificationExperience","`",".",":","param","complete_test_set_only",":","If","True",",","the","test","stream","will","contain","a","single","experience","containing","the","complete","test","set",".","This","also","means","that","the","definition","for","the","test","stream","must","contain","the","definition","for","a","single","experience","."]
code: def __init__(
      self: TClassificationScenario,
      *,
      stream_definitions: TStreamsUserDict,
      stream_factory: Callable[
          [str, TClassificationScenario], TClassificationStream
      ] = _default_classification_stream_factory,
      experience_factory: Callable[
          [TClassificationStream, int], TClassificationExperience
      ] = _default_classification_experience_factory,
      complete_test_set_only: bool = False,
  ):
      """
      Creates an instance a Continual Learning object classification
      benchmark.
  
      :param stream_definitions: The definition of the streams. For a more
          precise description, please refer to :class:`DatasetScenario`
      :param n_classes: The number of classes in the scenario. Defaults to
          None.
      :param stream_factory: A callable that, given the name of the
          stream and the benchmark instance, returns a stream instance.
          Defaults to the constructor of :class:`ClassificationStream`.
      :param experience_factory: A callable that, given the
          stream instance and the experience ID, returns an experience
          instance.
          Defaults to the constructor of :class:`ClassificationExperience`.
      :param complete_test_set_only: If True, the test stream will contain
          a single experience containing the complete test set. This also
          means that the definition for the test stream must contain the
          definition for a single experience.
      """
  
      super().__init__(
          stream_definitions=stream_definitions,
          stream_factory=stream_factory,
          experience_factory=experience_factory,
          complete_test_set_only=complete_test_set_only,
      )
  
imports: from typing import Callable, TypeVar, Union, Sequence, Optional, Iterable, List, Set, Tuple, Mapping, overload, TYPE_CHECKING
  import warnings
  from avalanche.benchmarks.scenarios.deprecated import AbstractClassTimelineExperience
  from avalanche.benchmarks.scenarios.deprecated.dataset_scenario import ClassesTimelineCLScenario, FactoryBasedStream, TStreamsUserDict
  from avalanche.benchmarks.utils.dataset_utils import manage_advanced_indexing
label_desc: Use image node_id 1 to create a new ClassificationScenario object from inherited base classes: ClassesTimelineCLScenario with example: obj = ClassificationScenario()