Skip to content

Intended behaviour of np.roll? #57

@johannes-graeter

Description

@johannes-graeter

Hi Simon,
I came across a line of code that made me think:

shift = shift % len(filenames_extended)
filenames_extended = list(np.roll(filenames_extended, shift))

If I understand correctly np.roll with axis=None will first flatten the array and then roll.
Is that the intention? In order to shift the training examples to the desired training position it seems to me that np.roll(..., axis=0) would be the desired behaviour (in order to roll complete rows of the array).

Thanks :)
Johannes

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