zeekay 9546c92611 Replace placeholders with real working examples
ML examples:
- credit_scoring: Credit risk prediction with HMEQ data
- disease_prediction: Healthcare ML on encrypted records
- cifar: Encrypted image classification
- federated_learning: Distributed FHE training
- hybrid_model: Mixed FHE/plaintext inference

Deployment:
- breast_cancer: Cancer detection API
- sentiment_analysis: Encrypted NLP
- server: FHE inference server

Blockchain:
- hardhat-template: Solidity + FHE
- react-template: Full dApp with FHE
2026-01-25 20:46:26 -08:00
2026-01-25 20:07:31 -08:00

Lux FHE Examples

Real, working examples for Fully Homomorphic Encryption development.

ML Examples (ml/)

Production-ready machine learning on encrypted data:

Example Description Data
credit_scoring/ Credit risk prediction HMEQ dataset
disease_prediction/ Healthcare predictions Medical records
cifar/ Image classification CIFAR-10
federated_learning/ Distributed training -
hybrid_model/ Mixed FHE/plaintext -

Quick Start

cd ml/credit_scoring
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
jupyter lab CreditScoring.ipynb

Deployment Examples (deployment/)

Production deployment patterns:

Example Description
breast_cancer/ Cancer detection API
sentiment_analysis/ NLP on encrypted text
server/ FHE inference server

Blockchain Examples (blockchain/)

FHE for smart contracts:

Example Description
hardhat-template/ Solidity + FHE
react-template/ React dApp + FHE

Requirements

  • Python 3.10+
  • For ML: pip install torus-ml
  • For blockchain: Node.js 18+

License

Apache 2.0

S
Description
FHE examples in C, C++, Python, Go, Rust, Ruby, Elixir, Haskell, Node
Readme
32 MiB
Languages
Jupyter Notebook 89.9%
Python 9.9%
Shell 0.1%