class_docstr: (RL)-based (Strategy) with (Int)erpreter
class_docstr_tok: ["(","RL",")","-based","(","Strategy",")","with","(","Int",")","erpreter"]
docstr: Parameters
  ----------
  state_interpreter : Union[dict, StateInterpreter]
      interpreter that interprets the qlib execute result into rl env state
  action_interpreter : Union[dict, ActionInterpreter]
      interpreter that interprets the rl agent action into qlib order list
  start_time : Union[str, pd.Timestamp], optional
      start time of trading, by default None
  end_time : Union[str, pd.Timestamp], optional
      end time of trading, by default None
docstr_tok: ["Parameters","--","--","--","--","--","state_interpreter",":","Union","[","dict",",","StateInterpreter","]","interpreter","that","interprets","the","qlib","execute","result","into","rl","env","state","action_interpreter",":","Union","[","dict",",","ActionInterpreter","]","interpreter","that","interprets","the","rl","agent","action","into","qlib","order","list","start_time",":","Union","[","str",",","pd.Timestamp","]",",","optional","start","time","of","trading",",","by","default","None","end_time",":","Union","[","str",",","pd.Timestamp","]",",","optional","end","time","of","trading",",","by","default","None"]
code: def __init__(
      self,
      policy,
      state_interpreter: dict | StateInterpreter,
      action_interpreter: dict | ActionInterpreter,
      outer_trade_decision: BaseTradeDecision = None,
      level_infra: LevelInfrastructure = None,
      common_infra: CommonInfrastructure = None,
      **kwargs,
  ) -> None:
      """
      Parameters
      ----------
      state_interpreter : Union[dict, StateInterpreter]
          interpreter that interprets the qlib execute result into rl env state
      action_interpreter : Union[dict, ActionInterpreter]
          interpreter that interprets the rl agent action into qlib order list
      start_time : Union[str, pd.Timestamp], optional
          start time of trading, by default None
      end_time : Union[str, pd.Timestamp], optional
          end time of trading, by default None
      """
      super(RLIntStrategy, self).__init__(
          policy,
          outer_trade_decision,
          level_infra,
          common_infra,
          **kwargs,
      )
  
      self.policy = policy
      self.state_interpreter = init_instance_by_config(
          state_interpreter, accept_types=StateInterpreter
      )
      self.action_interpreter = init_instance_by_config(
          action_interpreter, accept_types=ActionInterpreter
      )
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import Any, Generator, Optional, TYPE_CHECKING, Union
  from typing import Tuple
  from ..backtest.decision import BaseTradeDecision
  from ..backtest.utils import CommonInfrastructure, LevelInfrastructure, TradeCalendarManager
  from ..rl.interpreter import ActionInterpreter, StateInterpreter
  from ..utils import init_instance_by_config
label_desc: Use image node_id 1 to create a new RLIntStrategy object from inherited base classes: RLStrategy with example: obj = RLIntStrategy(policy, state_interpreter, action_interpreter, outer_trade_decision, level_infra, common_infra)