Traincrypt aims to implement and (perhaps in the near future) create an API for easy development of privacy preserving machine learning techniques. Currently, linear regression is implemented over the Paillier cipher.
Source code is written in Jupyter Notebook format. You may view the source from here.