(self, feat)
| 28 | self.alpha = 0.9 |
| 29 | |
| 30 | def update_features(self, feat): |
| 31 | feat /= np.linalg.norm(feat) |
| 32 | self.curr_feat = feat |
| 33 | if self.smooth_feat is None: |
| 34 | self.smooth_feat = feat |
| 35 | else: |
| 36 | self.smooth_feat = self.alpha *self.smooth_feat + (1-self.alpha) * feat |
| 37 | self.features.append(feat) |
| 38 | self.smooth_feat /= np.linalg.norm(self.smooth_feat) |
| 39 | |
| 40 | def predict(self): |
| 41 | mean_state = self.mean.copy() |
no outgoing calls
no test coverage detected