Skip to content

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

@Lzshanshan

Description

@Lzshanshan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions