Skip to content

Commit

Permalink
chore: refresh notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery authored Oct 3, 2023
1 parent ec46e8e commit 7a15a13
Show file tree
Hide file tree
Showing 17 changed files with 315 additions and 528 deletions.
21 changes: 11 additions & 10 deletions docs/advanced_examples/ClientServer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"total 20K\r\n",
"-rw-r--r-- 1 root root 4.4K Mar 28 20:21 client.zip\r\n",
"-rw-r--r-- 1 root root 9.1K Mar 28 20:21 server.zip\r\n"
"total 76K\r\n",
"-rw-r--r-- 1 root root 59K Oct 2 18:41 client.zip\r\n",
"-rw-r--r-- 1 root root 9.1K Oct 2 18:41 server.zip\r\n",
"-rw-r--r-- 1 root root 76 Oct 2 18:41 versions.json\r\n"
]
}
],
Expand Down Expand Up @@ -176,7 +177,7 @@
"output_type": "stream",
"text": [
"total 12K\r\n",
"-rw-r--r-- 1 root root 9.1K Mar 28 20:21 server.zip\r\n"
"-rw-r--r-- 1 root root 9.1K Oct 2 18:41 server.zip\r\n"
]
}
],
Expand All @@ -195,8 +196,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"total 8.0K\r\n",
"-rw-r--r-- 1 root root 4.4K Mar 28 20:21 client.zip\r\n"
"total 60K\r\n",
"-rw-r--r-- 1 root root 59K Oct 2 18:41 client.zip\r\n"
]
}
],
Expand All @@ -222,7 +223,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"KeySetCache: miss, regenerating /tmp/tmpagpnr37j/8326077290055537684/0_0\n"
"KeySetCache: miss, regenerating /tmp/tmpb40e2ro5/8948905552040656205/0_0\n"
]
}
],
Expand All @@ -246,7 +247,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Evaluation keys size: 92.95 MB\n"
"Evaluation keys size: 159.58 MB\n"
]
}
],
Expand All @@ -269,8 +270,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Encrypted data is 2049.18 times larger than the clear data\n",
"The average execution time is 0.56 seconds per sample.\n"
"Encrypted data is 1537.17 times larger than the clear data\n",
"The average execution time is 0.51 seconds per sample.\n"
]
}
],
Expand Down
22 changes: 7 additions & 15 deletions docs/advanced_examples/ConvolutionalNeuralNetwork.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Training: 0%| | 0/150 [00:00<?, ?it/s]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Training: 100%|██████████| 150/150 [00:47<00:00, 3.13it/s]\n"
"Training: 100%|██████████| 150/150 [00:51<00:00, 2.93it/s]\n"
]
},
{
Expand Down Expand Up @@ -270,7 +263,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Test accuracy for 6-bit weights and activations: 98.22%\n"
"Test accuracy for fp32 weights and activations: 98.22%\n"
]
}
],
Expand Down Expand Up @@ -388,8 +381,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: high error rate, more details with --display-optimizer-choice\n",
"100%|██████████| 450/450 [00:01<00:00, 295.41it/s]"
"100%|██████████| 450/450 [00:01<00:00, 233.35it/s]"
]
},
{
Expand Down Expand Up @@ -441,7 +433,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Keygen time: 3.98s\n"
"Keygen time: 3.57s\n"
]
}
],
Expand All @@ -462,22 +454,22 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 9,
"id": "5a82392b",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 100/100 [04:19<00:00, 2.59s/it]"
"100%|██████████| 100/100 [04:56<00:00, 2.97s/it]"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Time per inference in FHE: 2.59 with 99.00% accuracy\n"
"Time per inference in FHE: 2.97 with 98.00% accuracy\n"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions docs/advanced_examples/DecisionTreeClassifier.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"output_type": "stream",
"text": [
"Best hyper parameters: {'max_depth': None, 'max_features': None, 'min_samples_leaf': 10, 'min_samples_split': 100}\n",
"Best score: 0.9302161645088886\n"
"Best score: 0.930222249569906\n"
]
}
],
Expand Down Expand Up @@ -132,7 +132,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Sklearn average precision score: 0.95\n",
"Sklearn average precision score: 0.94\n",
"Concrete average precision score: 0.97\n"
]
}
Expand Down Expand Up @@ -247,7 +247,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Key generation time: 9.88 seconds\n"
"Key generation time: 7.15 seconds\n"
]
}
],
Expand Down Expand Up @@ -279,7 +279,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Execution time: 1.40 seconds per sample\n"
"Execution time: 1.56 seconds per sample\n"
]
}
],
Expand Down
26 changes: 13 additions & 13 deletions docs/advanced_examples/DecisionTreeRegressor.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 7a15a13

Please sign in to comment.