Closed Sharad24 closed 3 years ago
This may come from different versions of python maybe you are using 3.8. In the old version of python, 'np.bool_' can be scaled to be interpreted as an index. I will update the code later. You can download the dataset on google driver at this moment.
My Python version is 3.6.12
😅
This maybe of further help:
Package Version
-------------------- -------------------
absl-py 0.11.0
appnope 0.1.2
argon2-cffi 20.1.0
astor 0.8.1
async-generator 1.10
attrs 20.3.0
backcall 0.2.0
bleach 3.2.3
cached-property 1.5.2
certifi 2020.12.5
cffi 1.14.4
cycler 0.10.0
dataclasses 0.8
decorator 4.4.2
defusedxml 0.6.0
entrypoints 0.3
gast 0.4.0
grpcio 1.35.0
h5py 3.1.0
importlib-metadata 3.4.0
ipykernel 5.4.3
ipython 7.16.1
ipython-genutils 0.2.0
ipywidgets 7.6.3
jedi 0.18.0
Jinja2 2.11.2
joblib 1.0.1
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.1.11
jupyter-console 6.2.0
jupyter-core 4.7.0
jupyterlab-pygments 0.1.2
jupyterlab-widgets 1.0.0
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.2
kiwisolver 1.3.1
Markdown 3.3.3
MarkupSafe 1.1.1
matplotlib 3.3.3
mistune 0.8.4
mock 4.0.3
nbclient 0.5.1
nbconvert 6.0.7
nbformat 5.1.2
nest-asyncio 1.4.3
notebook 6.2.0
numpy 1.16.4
packaging 20.8
pandas 1.1.5
pandocfilters 1.4.3
parso 0.8.1
pexpect 4.8.0
pickleshare 0.7.5
Pillow 8.1.0
pip 21.0
prometheus-client 0.9.0
prompt-toolkit 3.0.14
protobuf 3.14.0
ptyprocess 0.7.0
pycparser 2.20
Pygments 2.7.4
pyparsing 2.4.7
pyrsistent 0.17.3
python-dateutil 2.8.1
pytz 2020.5
pyzmq 21.0.2
qtconsole 5.0.2
QtPy 1.9.0
scikit-learn 0.24.1
scipy 1.5.4
Send2Trash 1.5.0
setuptools 49.6.0.post20210108
six 1.15.0
tensorboard 1.13.1
tensorflow 1.13.1
tensorflow-estimator 1.13.0
termcolor 1.1.0
terminado 0.9.2
testpath 0.4.4
threadpoolctl 2.1.0
torch 1.8.1
torchvision 0.9.1
tornado 6.1
tqdm 4.59.0
traitlets 4.3.3
typing-extensions 3.7.4.3
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 1.0.1
wheel 0.36.2
widgetsnbextension 3.5.1
zipp 3.4.0
I think one solution is you can convert False to 0 and True to 1. I am not sure which environment causes the error.
Describe the bug While generation of the non-iid MNIST data,
generate_niid_20users.py
runs into an errorTo Reproduce Steps to reproduce the behavior:
python generate_niid_20users.py
Trace