Skip to content

Commit

Permalink
Merge pull request #78 from NillionNetwork/ex/cardio-risk
Browse files Browse the repository at this point in the history
add cardio risk example
  • Loading branch information
oceans404 authored Aug 13, 2024
2 parents 1825f60 + b561ad9 commit ec22aef
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/nada-by-example/cardio-risk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Cardio Risk

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import TestProgram from '@site/src/components/TestProgram/index';

The cardio risk example program returns a risk score that depends on private checks.

<Tabs>

<TabItem value="program" label="Nada program" default>
```python reference showGithubLink
https://github.com/NillionNetwork/nada-by-example/blob/main/src/cardio_risk.py
```
</TabItem>

<TabItem value="test-0" label="Test 0">
```yaml reference showGithubLink
https://github.com/NillionNetwork/nada-by-example/blob/main/tests/cardio_risk_0_test.yaml
```
</TabItem>

<TabItem value="test-1" label="Test 1">
```yaml reference showGithubLink
https://github.com/NillionNetwork/nada-by-example/blob/main/tests/cardio_risk_1_test.yaml
```
</TabItem>

<TabItem value="test-2" label="Test 2">
```yaml reference showGithubLink
https://github.com/NillionNetwork/nada-by-example/blob/main/tests/cardio_risk_2_test.yaml
```
</TabItem>

<TabItem value="test-3" label="Test 3">
```yaml reference showGithubLink
https://github.com/NillionNetwork/nada-by-example/blob/main/tests/cardio_risk_3_test.yaml
```
</TabItem>
</Tabs>

<TestProgram programName="cardio_risk" testFileName="cardio_risk_0_test"/>
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const sidebars = {
'nada-by-example/reduce',
'nada-by-example/random-number',
'nada-by-example/linear-scan',
'nada-by-example/cardio-risk',
'nada-by-example/voting',
'nada-by-example/r-p-s',
{
Expand Down

0 comments on commit ec22aef

Please sign in to comment.