(self, estimator)
| 15 | raise NotImplementedError(f'Density estimator {density} is not implemented.') |
| 16 | |
| 17 | def append(self, estimator): |
| 18 | self.x = torch.cat([self.x, estimator.x], dim=0) |
| 19 | self.fitness = torch.cat([self.fitness, estimator.fitness], dim=0) |
| 20 | |
| 21 | def density(self, x): |
| 22 | if self.density_method == 'uniform': |
no outgoing calls
no test coverage detected