class_docstr: Preparing data for model training and inferencing.
class_docstr_tok: ["Preparing","data","for","model","training","and","inferencing","."]
docstr: Setup the data.
  
  We split the setup_data function for following situation:
  
  - User have a Dataset object with learned status on disk.
  
  - User load the Dataset object from the disk.
  
  - User call `setup_data` to load new data.
  
  - User prepare data for model based on previous status.
docstr_tok: ["Setup","the","data",".","We","split","the","setup_data","function","for","following","situation",":","-","User","have","a","Dataset","object","with","learned","status","on","disk",".","-","User","load","the","Dataset","object","from","the","disk",".","-","User","call","`","setup_data","`","to","load","new","data",".","-","User","prepare","data","for","model","based","on","previous","status","."]
code: def setup_data(self, **kwargs):
      """
      Setup the data.
  
      We split the setup_data function for following situation:
  
      - User have a Dataset object with learned status on disk.
  
      - User load the Dataset object from the disk.
  
      - User call `setup_data` to load new data.
  
      - User prepare data for model based on previous status.
      """
  
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 3 for calling the Dataset obj's underlying member method code with example usage: obj.setup_data() without return types