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

View File

@ -47,19 +47,20 @@ class BaseEnvironment(gym.Env):
def __init__(
self,
df: DataFrame = DataFrame(),
prices: DataFrame = DataFrame(),
reward_kwargs: dict = {},
*,
df: DataFrame,
prices: DataFrame,
reward_kwargs: dict,
window_size=10,
starting_point=True,
id: str = "baseenv-1", # noqa: A002
seed: int = 1,
config: dict = {},
config: dict,
live: bool = False,
fee: float = 0.0015,
can_short: bool = False,
pair: str = "",
df_raw: DataFrame = DataFrame(),
df_raw: DataFrame,
):
"""
Initializes the training/eval environment.

View File

@ -488,7 +488,7 @@ def make_env(
seed: int,
train_df: DataFrame,
price: DataFrame,
env_info: Dict[str, Any] = {},
env_info: Dict[str, Any],
) -> Callable:
"""
Utility function for multiprocessed env.