Created
July 16, 2023 18:41
-
-
Save joaofig/e7e93f89fa5e45a54554dc81ea3b2805 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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