Home

Awesome

zkML-Noir

Description

Python ML model transcoding Noir, including various algorithms such as Decision tree, K-Means, XGBoost, FNN, CNN

Directory structure

Build guide

Import package

Usage

git clone https://github.com/storswiftlabs/zkml-noir.git
cd zkml-noir
# execute decision tree generate code
python  -m unittest tests/zkml/decision_tree/test_decision_tree_to_noir.py

# execute K-Means generate code
python  -m unittest tests/zkml/k_Means/test_k_Means_to_noir.py

# execute XGBoost generate code
python  -m unittest tests/zkml/XGBoost/test_xgboost_to_noir.py

# Train the CNN model
python tests/zkml/cnn/mnist_cnn.py
# execute FNN generate code
python zkml/routine_code_generate/fnn_to_noir.py
# execute CNN generate code
python zkml/routine_code_generate/cnn_to_noir.py
# Load the model and extract inputs
python zkml/routine_code_generate/extract_inputs.py