MCPcopy Create free account
hub / github.com/Zhangyanbo/diffusion-evolution / append

Method append

diffevo/generator.py:17–19  ·  view source on GitHub ↗
(self, estimator)

Source from the content-addressed store, hash-verified

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':

Callers 15

run.pyFile · 0.80
__init__Method · 0.80
compute_rewardsFunction · 0.80
compute_rewards_listFunction · 0.80
experimentFunction · 0.80
experiment_cmaesFunction · 0.80
make_videoFunction · 0.80
get_step_fitnessFunction · 0.80
get_step_fitness_stdFunction · 0.80
mainFunction · 0.80
get_all_recordsFunction · 0.80
run_benchmarks.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected