You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PolytopeNoise (or Polytope) is not deterministic #6
This is because Polytope.__init__() indirectly depends on np.random.rand() (via Polytope.__init__ > extreme > quickhull).
So after Polytope.__init__(), the order of vertices in self.V is non-deterministically random. But PolytopeNoise relies on the order of vertices in self.V. I find this counter-intuitive (I would have expected the above code to work).
Could you please do one of the following:
Either document PolytopeNoise or Polytope with something like "To get deterministic behavior, call np.random.seed(0) before instantiating Polytope".
Or change PolytopeNoise so that it uses a deterministic order of the polytope's vertices.
Activity