Artificial Intelligence, Finance, Reinforcement Learning, Data Science, Innovation.
self.initial_balance = initial_balance self.action_space = spaces.Discrete(3) # 0=hold, 1=buy, 2=sell self.observation_space = spaces.Box( low=0, high=1, shape=(len(df.columns),), dtype=np.float32 ) self.scaler = MinMaxScaler() self.df_scaled = self.scaler.fit_transform( self.df[["open", "high",