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

the meaning of the parameter iid #2

Open
YuansJia opened this issue Oct 21, 2023 · 1 comment
Open

the meaning of the parameter iid #2

YuansJia opened this issue Oct 21, 2023 · 1 comment

Comments

@YuansJia
Copy link

I don't quite understand the meaning of the parameter iid,which is not used in other python files. Are you setting up the noniid environment by randomly picking some categories for each client? Is the parameter iid used to adjust the heterogeneity of different clients?

@WenqiLiang
Copy link
Collaborator

It's my fault. Now you can check the usage of parameter iid as follows:

LGA/LGA.py

Line 86 in fa112ae

self.current_class = random.sample([x for x in range(self.numclass - self.task_size, self.numclass)], int(self.args.iid*self.task_size))

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

2 participants