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

"division by zero" when running shakespeare experiments #1

Open
amitport opened this issue Aug 4, 2019 · 2 comments
Open

"division by zero" when running shakespeare experiments #1

amitport opened this issue Aug 4, 2019 · 2 comments

Comments

@amitport
Copy link

amitport commented Aug 4, 2019

Hi I'm trying to reproduce some of the results but I get the following error when following the readme (after data/shakespeare/preprocess.sh, in all shakespeare experiment logs)

thank you

Traceback (most recent call last):
  File "models/main.py", line 174, in <module>
    main()
  File "models/main.py", line 63, in main
    fraction_corrupt=args.fraction_corrupt)
  File "RFA\models\utils\main_utils.py", line 171, in setup_clients
    corrupted_clients = apply_corruption_all(all_clients, dataset, corruption, fraction_corrupt, seed)
  File "RFA\models\utils\main_utils.py", line 242, in apply_corruption_all
    print('Corrupting {:0.4f} fraction of data'.format(num_corrupted_data_pts / total_num_data_pts))
ZeroDivisionError: division by zero
@krishnap25
Copy link
Owner

Hi,

Thanks for raising this issue. I have been a little busy with travel and other previous commitments.

This error appears to be caused by the changing format of the Shakespeare dataset on Project Gutenberg. See also this commit. I will try to fix this within the next 2 weeks.

Thanks,
Krishna

@JSparks7
Copy link

JSparks7 commented Nov 6, 2022

Hi, I'm trying to reproduce some of the results but I have some questions to ask you when following the readme.
If several json files (like femnist/data/all_data/all_data.json mentioned in data/femnist/readme) should be generated automatically atfer I ran data/femnist/preprocess.sh using time ./preprocess.sh -s niid --sf 1.0 -k 100 -t sample following the readme ? But I don't get json file like this.

Thank you!

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

3 participants