(self)
| 189 | |
| 190 | |
| 191 | def reset(self): |
| 192 | self.cur_step = 0 |
| 193 | self.stock_owned = np.zeros(self.n_stock) |
| 194 | self.stock_price = self.stock_price_history[self.cur_step] |
| 195 | self.cash_in_hand = self.initial_investment |
| 196 | return self._get_obs() |
| 197 | |
| 198 | |
| 199 | def step(self, action): |
no test coverage detected