- Synthetic data generation
- Train ML model
- Export ONNX network to input to EZKL
$ cargo run$ python src/model.py synthetic_data/credit_data.jsonThis generates the credit_model.onnx file.
Make sure that all the tools defined in .tool-versions are installed before you start.
Then install python dependencies:
$ pip install -r requirements.txtThen build the project.
$ cargo buildIf you want to re-train the model in new synthetic data:
$ cargo runThen train the model and generate the new ONNX format:
$ python src/model.py synthetic_data/credit_data.jsonCommit synthetic_data/credit_data.json and credit_model.onnx to git
to make sure that we know which data have been used to train the particular
model.
Note: The model is not evaluated for its correctness. This is something that we could have done with test data, but we haven't for now.