class_docstr: Action Interpreter that interpret rl agent action into qlib orders
class_docstr_tok: ["Action","Interpreter","that","interpret","rl","agent","action","into","qlib","orders"]
docstr: Convert the policy action to simulator action.
  
  Parameters
  ----------
  simulator_state
      Retrieved with ``simulator.get_state()``.
  action
      Raw action given by policy.
  
  Returns
  -------
  The action needed by simulator,
docstr_tok: ["Convert","the","policy","action","to","simulator","action",".","Parameters","--","--","--","--","--","simulator_state","Retrieved","with","``","simulator.get_state","(",")","``",".","action","Raw","action","given","by","policy",".","Returns","--","--","--","-","The","action","needed","by","simulator",","]
code: def interpret(
      self, simulator_state: StateType, action: PolicyActType
  ) -> ActType:
      """Convert the policy action to simulator action.
  
      Parameters
      ----------
      simulator_state
          Retrieved with ``simulator.get_state()``.
      action
          Raw action given by policy.
  
      Returns
      -------
      The action needed by simulator,
      """
      raise NotImplementedError("interpret is not implemented!")
  
imports: from __future__ import annotations
  from typing import Any, Generic, TypeVar
  import gym
  import numpy
  from gym import spaces
  from qlib.typehint import final
  from .simulator import ActType, StateType
label_desc: Use image node_id 4 for calling the ActionInterpreter obj's underlying member method code with example usage: obj.interpret(simulator_state, action) without return types