Giter Site home page Giter Site logo

flame's People

Contributors

rachelxuan11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flame's Issues

代码问题

您好,很感谢您分享的代码。但是我在学习您代码遇到一个不明白的地方。
image
zhe这里面为什么是除以self.em_s?如果您能百忙中回答我这个问题,我将不胜感激

generate_data.py运行报错

traceback like this:
python generate_data.py
[6903, 7877, 6990, 7141, 6824, 6313, 6876, 7293, 6825, 6958]
Assign samples to each user
Traceback (most recent call last):
File "/Users/aaaa/miniconda3/envs/FLAME-master/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3361, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "generate_data.py", line 47, in
X[user].append(mnist_data[l][idx[l]].tolist())
File "/Users/aaa/miniconda3/envs/FLAME-master/lib/python3.7/site-packages/pandas/core/frame.py", line 3458, in getitem
indexer = self.columns.get_loc(key)
File "/Users/aaa/miniconda3/envs/FLAME-master/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 0
最近在做混洗模型的差分隐私联邦学习,想先学习下前辈的模型,运行时发生了问题,数据集处理时报错,能帮忙看看这是为什么嘛

generate_data.py运行报错

前辈您好,最近我在阅读您的这篇论文,在代码复现的过程中这个地方一直报错,请问有没有什么好的解决办法?或者请问能否将数据文件上传共享?
D:\Anaconda3\envs\ShuffleFL\python.exe D:/Codes/python/differential_privacy/FLAME/generate_data.py
[6903, 7877, 6990, 7141, 6824, 6313, 6876, 7293, 6825, 6958]
Assign samples to each user
Traceback (most recent call last):
File "D:\Anaconda3\envs\ShuffleFL\lib\site-packages\pandas\core\indexes\base.py", line 2898, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "D:/Codes/python/differential_privacy/FLAME/generate_data.py", line 47, in
X[user].append(mnist_data[l][idx[l]].tolist())
File "D:\Anaconda3\envs\ShuffleFL\lib\site-packages\pandas\core\frame.py", line 2906, in getitem
indexer = self.columns.get_loc(key)
File "D:\Anaconda3\envs\ShuffleFL\lib\site-packages\pandas\core\indexes\base.py", line 2900, in get_loc
raise KeyError(key) from err
KeyError: 0

Process finished with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.