Skip to content

Linear Regression on Homomorphic Encrypted Data, based on PySEAL package

Notifications You must be signed in to change notification settings

Valentyn1997/seal-regression

Repository files navigation

seal-regression

The aim of our work is to perform Machine Learning (ML) algorithm, namely Linear Regression, on the ciphertext and evaluate its performance and usability. We use gradient descent in order to find LR coefficient estimates, as this algorithm does not require division.

secure ML

We used Microsoft SEAL C++ library and its Python wrapper - PySEAL. SEAL uses the Fan-Vercauteren homomorphic encryption scheme - Somewhat Fully Homomorphic scheme.

Installation for Linux/Mac

pip3 install git+https://github.com/Valentyn1997/seal_regression.git

One also needs to install PySEAL Python Library. You can run the following script:

install_pyseal.sh

Usage examples

The basic example of library usage could be found in: main.py.

The perfromance evaluation is in: perfromance_results.ipynb.

About

Linear Regression on Homomorphic Encrypted Data, based on PySEAL package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published