Skip to content

fcma: random argument in preprocessing.prepare_fcma_data is not clear #363

@moopet17

Description

@moopet17

I ran the following code:

permuted_raw_data, _, permuted_labels = prepare_fcma_data(images, epoch_list, mask, random=2) print(permuted_labels)

which gives me this output:
[0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]

However, I get the exact same output, when I run the same code again or when I set random=0, random=1, random=2, or when I leave out the random argument altoghether. From what I understand, this should not happen, as the lables should be shuffled? Do I get the documentation wrong or might there be a bug?

Also, I the end, my fcma results give me the same classification performance, regardless of what I set the random argument to.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions