(self)
| 152 | |
| 153 | |
| 154 | def reset(self): |
| 155 | self.cur_step = 0 |
| 156 | self.stock_owned = np.zeros(self.n_stock) |
| 157 | self.stock_price = self.stock_price_history[self.cur_step] |
| 158 | self.cash_in_hand = self.initial_investment |
| 159 | return self._get_obs() |
| 160 | |
| 161 | |
| 162 | def step(self, action): |
no test coverage detected