Based on a HyperVolume function found here (direct download link), I am trying to return hypervolume metrics for my algorithm. However, not even the test code works:
from hv import HyperVolume
referencePoint = [2, 2, 2]
hyperVolume = HyperVolume(referencePoint)
front = [[1, 0, 1], [0, 1, 0]]
result = hyperVolume.compute(front)
I'm getting errors which seem to be related to the fact that I'm using Python 3, and the function itself is using Python 2. Is there a way around that? Is there a similar function implemented in Python 3?
I've also looked at this one in deap, but it seems the have the same issue.
LE: I've been asked for specific errors, so I'll keep a log of them as they're being solved
- name xrange is not defined - fixed by replacing with range
- TypeError: unorderable types: Node() < Node()