Skip to content

Some mistakes in generating niid mnist data #16

@tjuxiaofeng

Description

@tjuxiaofeng

Thanks to the author for modifying some old errors in the file two months ago, but there are still some errors that need attention.

屏幕截图(3)_LI

  1. Line 39: "l = (user * NUM_USERS + j) % 10" should be changed to "l = (user * NUM_LABELS + j) % 10". The former will cause data allocation errors, and all users are assigned data with the same label.
  2. Line 81: The code to calculate "l" should be same in Line 39 and Line 81.
  3. Line 86: "if idx[l] + num_samples < len(mnist_data[l]):" the "<" should be modified to "<=". The former will cause the last part of the data set of each label to not be correctly assigned to the user. (This problem occurs because the author modified an old error on line 87, which has changed "mnist_data[l][idx[l]:num_samples]" to "mnist_data[l][idx[l]:idx[l]+num_samples]". )

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