加入CODE CHINA

· 不限速    · 不限空间    · 不限人数    · 私仓免费

免费加入
    README.md

    MindArmour

    查看中文

    What is MindArmour

    A tool box for MindSpore users to enhance model security and trustworthiness and protect privacy data.

    MindArmour model security module is designed for adversarial examples, including four submodule: adversarial examples generation, adversarial examples detection, model defense and evaluation. The architecture is shown as follow:

    mindarmour_architecture

    MindArmour differential privacy module Differential-Privacy implements the differential privacy optimizer. Currently, SGD, Momentum and Adam are supported. They are differential privacy optimizers based on the Gaussian mechanism. This mechanism supports both non-adaptive and adaptive policy. Rényi differential privacy (RDP) and Zero-Concentrated differential privacy(ZDP) are provided to monitor differential privacy budgets. The architecture is shown as follow:

    dp_architecture

    Setting up MindArmour

    Dependencies

    This library uses MindSpore to accelerate graph computations performed by many machine learning models. Therefore, installing MindSpore is a pre-requisite. All other dependencies are included in setup.py.

    Installation

    Installation for development

    1. Download source code from Gitee.
    git clone https://gitee.com/mindspore/mindarmour.git
    1. Compile and install in MindArmour directory.
    $ cd mindarmour
    $ python setup.py install

    Pip installation

    1. Download whl package from MindSpore website, then run the following command:
    pip install mindarmour-{version}-cp37-cp37m-linux_{arch}.whl
    1. Successfully installed, if there is no error message such as No module named 'mindarmour' when execute the following command:
    python -c 'import mindarmour'

    Docs

    Guidance on installation, tutorials, API, see our User Documentation.

    Community

    Contributing

    Welcome contributions. See our Contributor Wiki for more details.

    Release Notes

    The release notes, see our RELEASE.

    License

    Apache License 2.0

    项目简介

    A tool box for MindSpore users to enhance model security and trustworthiness.

    发行版本

    当前项目没有发行版本

    贡献者 8

    开发语言

    • Python 99.8 %
    • Shell 0.2 %