chore: Fix a few freqAI mutable defaults

This commit is contained in:
Matthias
2024-05-05 19:17:18 +02:00
parent 97c937e554
commit 1ade11f00b
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -47,19 +47,20 @@ class BaseEnvironment(gym.Env):
def __init__( def __init__(
self, self,
df: DataFrame = DataFrame(), *,
prices: DataFrame = DataFrame(), df: DataFrame,
reward_kwargs: dict = {}, prices: DataFrame,
reward_kwargs: dict,
window_size=10, window_size=10,
starting_point=True, starting_point=True,
id: str = "baseenv-1", # noqa: A002 id: str = "baseenv-1", # noqa: A002
seed: int = 1, seed: int = 1,
config: dict = {}, config: dict,
live: bool = False, live: bool = False,
fee: float = 0.0015, fee: float = 0.0015,
can_short: bool = False, can_short: bool = False,
pair: str = "", pair: str = "",
df_raw: DataFrame = DataFrame(), df_raw: DataFrame,
): ):
""" """
Initializes the training/eval environment. Initializes the training/eval environment.
@@ -488,7 +488,7 @@ def make_env(
seed: int, seed: int,
train_df: DataFrame, train_df: DataFrame,
price: DataFrame, price: DataFrame,
env_info: Dict[str, Any] = {}, env_info: Dict[str, Any],
) -> Callable: ) -> Callable:
""" """
Utility function for multiprocessed env. Utility function for multiprocessed env.