(self)
| 164 | |
| 165 | |
| 166 | def reset(self): |
| 167 | self.cur_step = 0 |
| 168 | self.stock_owned = np.zeros(self.n_stock) |
| 169 | self.stock_price = self.stock_price_history[self.cur_step] |
| 170 | self.cash_in_hand = self.initial_investment |
| 171 | return self._get_obs() |
| 172 | |
| 173 | |
| 174 | def step(self, action): |
no test coverage detected