Installation

PIP

The Main Package

To install the core package of Private Evolution, please use the following command:

pip install "private-evolution @ git+https://github.com/microsoft/DPSDA.git"

Image Generation

If you are using Private Evolution to generate images, use the following command instead to install the package with the necessary dependencies:

pip install "private-evolution[image] @ git+https://github.com/microsoft/DPSDA.git"

Text Generation

If you are using Private Evolution to generate text, use the following command instead to install the package with the necessary dependencies:

pip install "private-evolution[text] @ git+https://github.com/microsoft/DPSDA.git"

Tabular Data Generation

If you are using Private Evolution to generate tabular data, use the following command instead to install the package with the necessary dependencies:

pip install "private-evolution[tabular] @ git+https://github.com/microsoft/DPSDA.git"

Multiple Dependencies

Multiple dependencies can also be combined. For example, to install the package with both image and text generation dependencies, please use the following command:

pip install "private-evolution[image,text] @ git+https://github.com/microsoft/DPSDA.git"

Editable Mode

To install Private Evolution in editable mode, please use the following command:

git clone https://github.com/microsoft/DPSDA.git
cd DPSDA
pip install -e .[option]

where option is the optional dependency discussed above (e.g., image).

Faiss

Private Evolution requires a nearest neighbor search process. By default, it uses the sklearn package for this purpose. However, for faster computation, we recommend using the faiss package. To install faiss 1.8.0, please use the following command:

conda install -y -c pytorch -c nvidia faiss-gpu=1.8.0

Please check out the faiss website for the latest information on how to install the package.