1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-12 15:26:54 +08:00
This commit is contained in:
Yuchen Fang
2021-01-28 00:41:02 +08:00
parent 98086e4fdc
commit a03b08bb4c
21 changed files with 154 additions and 563 deletions

View File

@@ -25,4 +25,3 @@ class Static_Action(Base_Action):
"""
return min(target * self.action_map[action], position)

View File

@@ -24,6 +24,7 @@ class Rule_Static_Interval(Base_Action):
"""
return target / (interval_num) * action
class Rule_Dynamic_Interval(Base_Action):
""" """
@@ -42,4 +43,4 @@ class Rule_Dynamic_Interval(Base_Action):
:param **kargs:
"""
return position / (interval_num - interval) * action
return position / (interval_num - interval) * action