AIJack
AIJack copied to clipboard
Security and Privacy Risk Simulator for Machine Learning (arXiv:2312.17667)
### [Codacy](https://app.codacy.com/gh/Koukyosyumei/AIJack/commit?cid=689142750) detected an issue: #### Message: `Function parameter 'orders' should be passed by const reference.` #### Occurred on: + **Commit**: 33fd18c55941b85e43b8d8acb1c9318cf3313ad2 + **File**: [src/aijack/defense/dp/core/search.cpp](https://github.com/Koukyosyumei/AIJack/blob/33fd18c55941b85e43b8d8acb1c9318cf3313ad2/src/aijack/defense/dp/core/search.cpp) + **LineNum**: [10](https://github.com/Koukyosyumei/AIJack/blob/33fd18c55941b85e43b8d8acb1c9318cf3313ad2/src/aijack/defense/dp/core/search.cpp#L10) + **Code**:...
### [Codacy](https://app.codacy.com/gh/Koukyosyumei/AIJack/commit?cid=689142750) detected an issue: #### Message: `Using type() instead of isinstance() for a typecheck.` #### Occurred on: + **Commit**: 316fcc0c3bbfcd2eaabbf18acf3d27f43b505f70 + **File**: [src/aijack/defense/paillier/torch_wrapper.py](https://github.com/Koukyosyumei/AIJack/blob/316fcc0c3bbfcd2eaabbf18acf3d27f43b505f70/src/aijack/defense/paillier/torch_wrapper.py) + **LineNum**: [22](https://github.com/Koukyosyumei/AIJack/blob/316fcc0c3bbfcd2eaabbf18acf3d27f43b505f70/src/aijack/defense/paillier/torch_wrapper.py#L22) + **Code**: `if...
### [Codacy](https://app.codacy.com/gh/Koukyosyumei/AIJack/commit?cid=689142750) detected an issue: #### Message: `Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.` #### Occurred on: + **Commit**: 6c303c0f1d28aa3bcac78aefc93cc74fd0c3a017 +...
### [Codacy](https://app.codacy.com/gh/Koukyosyumei/AIJack/commit?cid=807956947) detected an issue: #### Message: `Lambda may not be necessary` #### Occurred on: + **Commit**: ffbeebdd44a5ee6d32799e4009055fd70767bca5 + **File**: [src/aijack/defense/paillier/fed_wrapper.py](https://github.com/Koukyosyumei/AIJack/blob/ffbeebdd44a5ee6d32799e4009055fd70767bca5/src/aijack/defense/paillier/fed_wrapper.py) + **LineNum**: [16](https://github.com/Koukyosyumei/AIJack/blob/ffbeebdd44a5ee6d32799e4009055fd70767bca5/src/aijack/defense/paillier/fed_wrapper.py#L16) + **Code**: `np.vectorize(lambda x: pk.encrypt(x))(grad.detach().numpy())` ####...