December 2019
Intermediate to advanced
368 pages
11h 10m
English
This function provides a mechanism to evaluate the novelty score of the novelty item against all items already collected in the novelty archive and all the novelty items discovered in the current population. We calculate the novelty score as the average distance to the k=15 nearest neighbors by following these steps:
distances = [] for n in self.novel_items: if n.genomeId != item.genomeId: distances.append(self.novelty_metric(n, item)) else: print("Novelty Item is already in archive: %d" % n.genomeId)
Read now
Unlock full access