class_docstr: 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.
class_docstr_tok: ["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","."]
docstr: Creates a ``NIExperience`` instance given the stream from this
  experience was taken and and the current experience ID.
  
  :param origin_stream: The stream from which this experience was
      obtained.
  :param current_experience: The current experience ID, as an integer.
docstr_tok: ["Creates","a","``","NIExperience","``","instance","given","the","stream","from","this","experience","was","taken","and","and","the","current","experience","ID",".",":","param","origin_stream",":","The","stream","from","which","this","experience","was","obtained",".",":","param","current_experience",":","The","current","experience","ID",",","as","an","integer","."]
code: def __init__(
      self,
      origin_stream: NIStream,
      current_experience: int,
  ):
      """
      Creates a ``NIExperience`` instance given the stream from this
      experience was taken and and the current experience ID.
  
      :param origin_stream: The stream from which this experience was
          obtained.
      :param current_experience: The current experience ID, as an integer.
      """
  
      self._benchmark: NIScenario = origin_stream.benchmark
  
      super().__init__(origin_stream, current_experience)
  
file_path: avalanche/avalanche/benchmarks/scenarios/deprecated/new_instances/ni_scenario.py
imports: from typing import Optional, List, Sequence, Dict, Any
  import torch
  from avalanche.benchmarks.scenarios.deprecated.classification_scenario import ClassificationScenario, ClassificationStream, ClassificationExperience
  from avalanche.benchmarks.scenarios.deprecated.new_instances.ni_utils import _exp_structure_from_assignment
  from avalanche.benchmarks.utils.classification_dataset import _taskaware_classification_subset, TaskAwareClassificationDataset, TaskAwareSupervisedClassificationDataset
  from avalanche.benchmarks.utils.flat_data import ConstantSequence
label_desc: Use image node_id 1 to create a new NIExperience object from inherited base classes: ClassificationExperience with example: obj = NIExperience(origin_stream, current_experience)