mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-10 22:36:55 +08:00
fix comments & add VAStrategy & add trade indicator
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
class BaseInterpreter:
|
||||
"""Base Interpreter"""
|
||||
|
||||
def interpret(**kwargs):
|
||||
def interpret(self, **kwargs):
|
||||
raise NotImplementedError("interpret is not implemented!")
|
||||
|
||||
|
||||
class ActionInterpreter(BaseInterpreter):
|
||||
"""Action Interpreter that interpret rl agent action into qlib orders"""
|
||||
|
||||
def interpret(action, **kwargs):
|
||||
def interpret(self, action, **kwargs):
|
||||
"""interpret method
|
||||
|
||||
Parameters
|
||||
@@ -32,7 +32,7 @@ class ActionInterpreter(BaseInterpreter):
|
||||
class StateInterpreter(BaseInterpreter):
|
||||
"""State Interpreter that interpret execution result of qlib executor into rl env state"""
|
||||
|
||||
def interpret(execute_result, **kwargs):
|
||||
def interpret(self, execute_result, **kwargs):
|
||||
"""interpret method
|
||||
|
||||
Parameters
|
||||
|
||||
Reference in New Issue
Block a user