class_docstr: Preparing data for model training and inferencing.
class_docstr_tok: ["Preparing","data","for","model","training","and","inferencing","."]
docstr: init is designed to finish following steps:
  
  - init the sub instance and the state of the dataset(info to prepare the data)
      - The name of essential state for preparing data should not start with '_' so that it could be serialized on disk when serializing.
  
  - setup data
      - The data related attributes' names should start with '_' so that it will not be saved on disk when serializing.
  
  The data could specify the info to calculate the essential data for preparation
docstr_tok: ["init","is","designed","to","finish","following","steps",":","-","init","the","sub","instance","and","the","state","of","the","dataset","(","info","to","prepare","the","data",")","-","The","name","of","essential","state","for","preparing","data","should","not","start","with","'","_","'","so","that","it","could","be","serialized","on","disk","when","serializing",".","-","setup","data","-","The","data","related","attributes","'","names","should","start","with","'","_","'","so","that","it","will","not","be","saved","on","disk","when","serializing",".","The","data","could","specify","the","info","to","calculate","the","essential","data","for","preparation"]
code: def __init__(self, **kwargs):
      """
      init is designed to finish following steps:
  
      - init the sub instance and the state of the dataset(info to prepare the data)
          - The name of essential state for preparing data should not start with '_' so that it could be serialized on disk when serializing.
  
      - setup data
          - The data related attributes' names should start with '_' so that it will not be saved on disk when serializing.
  
      The data could specify the info to calculate the essential data for preparation
      """
      self.setup_data(**kwargs)
      super().__init__()
  
imports: from ...utils.serial import Serializable
  from typing import Callable, Union, List, Tuple, Dict, Text, Optional
  from ...utils import init_instance_by_config, np_ffill, time_to_slc_point
  from ...log import get_module_logger
  from .handler import DataHandler, DataHandlerLP
  from copy import copy, deepcopy
  from inspect import getfullargspec
  import pandas
  import numpy
  import bisect
  from ...utils import lazy_sort_index
  from .utils import get_level_index
label_desc: Use image node_id 1 to create a new Dataset object from inherited base classes: Serializable with example: obj = Dataset()