Secretflow – A Unified Framework For Privacy-Preserving Data Analysis And Machine Learning
Discription

[![](https://blogger.googleusercontent.com/img/a/AVvXsEjrdSGnoV7EgVBbCyRagGSjpjOBezntp_8D60m_SXgp4vGCSy1RI5pKGEjfUFfwiafzd0U0xtUKi-cjSXqj2kC29ZH8pQN0CEEi_GEtzMa4RaQxDCYfjLovjR9JD3wZY7AMrIhBeKoyzS0ASIPHARxSgjjqE1exFHRUhgWsp4key8Q661peEcRvZL6b=w640-h360)]()

SecretFlow is a unified framework for privacy-preserving data [intelligence]( “intelligence” ) and machine learning. To achieve this goal, it provides:

* An abstract device layer consists of plain devices and [secret]( “secret” ) devices which encapsulate various cryptographic protocols.
* A device flow layer modeling higher algorithms as device object flow and DAG.
* An algorithm layer to do data [analysis]( “analysis” ) and [machine learning]( “machine learning” ) with horizontal or vertical partitioned data.
* A workflow layer that seamlessly integrates data processing, model training, and hyperparameter tuning.

[![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZz4iE7Ag_Dve_pPoeOy72422Oaosi3odKxSqP8WTk-vBR34PxTdhbsKYLc-zfF2ZAVjnwqHDa2KAHhfl6IgKBFltt07r3q5XYdFsLBlUwo94Ai6JFOK-ESJYiRHRD8b8KChTk19qo0OJrfTgo4dnH7Y6PKQk5Zq0Ecs29OeoWqekDLt26boLnX33b/w640-h326/secretflow.png)]()

## Install

For users who want to try SecretFlow, you can install the current release from [pypi]( “pypi” ). Note that it requires python version == 3.8, you can create a virtual environment with conda if not satisfied.

pip install -U secretflow

Try you first SecretFlow program

>>> import secretflow as sf
>>> sf.init([‘alice’, ‘bob’, ‘carol’], num_cpus=8, log_to_driver=True)
>>> dev = sf.PYU(‘alice’)
>>> import numpy as np
>>> data = dev(np.random.rand)(3, 4)
>>> data

## Getting started

* [Getting started]( “Getting started” )
* [Tutorials help you to understand and use secretflow]( “Tutorials help you to understand and use secretflow” )
* [The api reference]( “The api reference” )

## Deployment

* [Standalone or Cluster Mode]( “Standalone or Cluster Mode” )

## Contribution guide

For developers who want to contribute to SecretFlow, you can set up an environment with the following instruction.

git clone https://github.com/secretflow/secretflow.git

# optional
git lfs install

conda create -n secretflow python=3.8
conda activate secretflow
pip install -r dev-requirements.txt -r requirements.txt

### Coding Style

We prefer [black]( “black” ) as our code formatter. For various [editor]( “editor” ) users, please refer to [editor integration]( “editor integration” ). Pass `-S, –skip-string-normalization` to [black]( “black” ) to avoid string quotes or prefixes normalization.

## Disclaimer

Non-release versions of SecretFlow are prohibited to use in any production environment due to possible bugs, glitches, lack of functionality, security issues or other problems.

**[Download Secretflow]( “Download Secretflow” )**Read More

Back to Main

Subscribe for the latest news: