(self)
| 171 | |
| 172 | |
| 173 | def reset(self): |
| 174 | self.cur_step = 0 |
| 175 | self.stock_owned = np.zeros(self.n_stock) |
| 176 | self.stock_price = self.stock_price_history[self.cur_step] |
| 177 | self.cash_in_hand = self.initial_investment |
| 178 | return self._get_obs() |
| 179 | |
| 180 | |
| 181 | def step(self, action): |
no test coverage detected