Skip to content

Instantly share code, notes, and snippets.

@joaofig
Created July 16, 2023 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaofig/e7e93f89fa5e45a54554dc81ea3b2805 to your computer and use it in GitHub Desktop.
Save joaofig/e7e93f89fa5e45a54554dc81ea3b2805 to your computer and use it in GitHub Desktop.
def evolve_path(self: PredictedPath,
h0: int,
probability: float):
path = PredictedPath(probability=self.probability * probability,
step=self.step+1,
size=self.size)
path.array = self.array.copy()
path.array[self.step] = h0
return path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment