Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Ch4 .argmax() function of Simulating Many Random Walks at Once #209

Open
Lzshanshan opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@Lzshanshan
Copy link

Hello,

In the last example of Ch 4, Simulating Many Random Walks at Once, I think the function argmax only returns the "first crossing time" instead of the "crossing times":

crossing_times = (np.abs(walks[hits30]) >= 30).argmax(axis=1)

Regards,
Zhenshan

@Lzshanshan Lzshanshan changed the title Error in Ch4 .argmax() function in Simulating Many Random Walks at Once Error in Ch4 .argmax() function of Simulating Many Random Walks at Once Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant