Skip to content

Commit

Permalink
chore: refresh notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft authored and github-actions[bot] committed Apr 25, 2024
1 parent f2f5d0e commit 41f3da7
Show file tree
Hide file tree
Showing 21 changed files with 2,114 additions and 885 deletions.
8 changes: 4 additions & 4 deletions docs/advanced_examples/ClassifierComparison.ipynb

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/advanced_examples/ClientServer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"total 152\r\n",
"-rw-r--r-- 1 romanbredehoft staff 59K Apr 25 14:02 client.zip\r\n",
"-rw-r--r-- 1 romanbredehoft staff 9.2K Apr 25 14:02 server.zip\r\n",
"-rw-r--r-- 1 romanbredehoft staff 76B Apr 25 14:02 versions.json\r\n"
"total 76K\r\n",
"-rw-r--r-- 1 root root 59K Apr 25 20:00 client.zip\r\n",
"-rw-r--r-- 1 root root 9.5K Apr 25 20:00 server.zip\r\n",
"-rw-r--r-- 1 root root 75 Apr 25 20:00 versions.json\r\n"
]
}
],
Expand Down Expand Up @@ -176,8 +176,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"total 24\r\n",
"-rw-r--r-- 1 romanbredehoft staff 9.2K Apr 25 14:02 server.zip\r\n"
"total 12K\r\n",
"-rw-r--r-- 1 root root 9.5K Apr 25 20:00 server.zip\r\n"
]
}
],
Expand All @@ -196,8 +196,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"total 120\r\n",
"-rw-r--r-- 1 romanbredehoft staff 59K Apr 25 14:02 client.zip\r\n"
"total 60K\r\n",
"-rw-r--r-- 1 root root 59K Apr 25 20:00 client.zip\r\n"
]
}
],
Expand All @@ -223,7 +223,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"KeySetCache: miss, regenerating /var/folders/p6/8g0g4d5s4y1bzz95sw3ch7qw0000gn/T/tmpgv8ih42r/6288456596652981602\n"
"KeySetCache: miss, regenerating /tmp/tmp61ls254t/6318749875182965247\n"
]
}
],
Expand Down Expand Up @@ -271,7 +271,7 @@
"output_type": "stream",
"text": [
"Encrypted data is 1538.10 times larger than the clear data\n",
"The average execution time is 0.39 seconds per sample.\n"
"The average execution time is 0.71 seconds per sample.\n"
]
}
],
Expand Down
1,630 changes: 1,359 additions & 271 deletions docs/advanced_examples/ConvolutionalNeuralNetwork.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 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.9300808556256511\n"
"Best score: 0.9293680390146857\n"
]
}
],
Expand Down Expand Up @@ -247,7 +247,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Key generation time: 0.48 seconds\n"
"Key generation time: 0.49 seconds\n"
]
}
],
Expand Down Expand Up @@ -279,7 +279,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Execution time: 0.51 seconds per sample\n"
"Execution time: 0.58 seconds per sample\n"
]
}
],
Expand Down
53 changes: 31 additions & 22 deletions docs/advanced_examples/DecisionTreeRegressor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"output_type": "stream",
"text": [
"Using ConcreteML version 1.5.0\n",
"With Python version 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]\n"
"With Python version 3.8.18 (default, Aug 28 2023, 08:26:46) \n",
"[GCC 9.4.0]\n"
]
}
],
Expand Down Expand Up @@ -243,7 +244,15 @@
"execution_count": 6,
"id": "8069097d",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Training on 5100 samples in 21.4547 seconds\n"
]
}
],
"source": [
"default_model = ConcreteDecisionTreeRegressor(criterion=\"absolute_error\", n_bits=6, random_state=42)\n",
"\n",
Expand All @@ -254,7 +263,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"id": "e286d33c",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -288,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"id": "3b076c44",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -349,7 +358,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"id": "1e64ee0b-76af-4e6a-a1d7-31048115a6e7",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -396,7 +405,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"id": "20431f4b",
"metadata": {},
"outputs": [],
Expand All @@ -414,7 +423,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"id": "07e5cffc",
"metadata": {},
"outputs": [],
Expand All @@ -424,7 +433,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"id": "177e073d",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -495,15 +504,15 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"id": "6ca2fd2c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Compiled with 5100 samples in 83.1571 seconds\n"
"Compiled with 500 samples in 10.6575 seconds\n"
]
}
],
Expand All @@ -517,7 +526,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"id": "132936f9",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -551,7 +560,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 15,
"id": "cb045438",
"metadata": {},
"outputs": [],
Expand All @@ -563,15 +572,15 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 16,
"id": "904f585b",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Execution time: 7.52 seconds per sample\n"
"Execution time: 7.49 seconds per sample\n"
]
}
],
Expand All @@ -595,7 +604,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 17,
"id": "07fe03ba",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -635,7 +644,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 18,
"id": "15008ad0-05d0-4ec2-91ea-c4be2efbc05b",
"metadata": {},
"outputs": [
Expand All @@ -659,16 +668,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Circuit compiled with 5100 samples in 114.1739 seconds\n",
"Circuit compiled with 5100 samples in 118.5562 seconds\n",
"Generating a key for an 9-bit circuit\n",
"Key generation time: 0.41 seconds\n"
"Key generation time: 0.42 seconds\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Execution time: 8.35 seconds per sample\n",
"Execution time: 9.64 seconds per sample\n",
"\n",
"N_BITS = 8\n",
"----------\n"
Expand All @@ -686,16 +695,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Circuit compiled with 5100 samples in 123.1487 seconds\n",
"Circuit compiled with 5100 samples in 105.0549 seconds\n",
"Generating a key for an 10-bit circuit\n",
"Key generation time: 0.41 seconds\n"
"Key generation time: 0.42 seconds\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Execution time: 7.80 seconds per sample\n",
"Execution time: 9.05 seconds per sample\n",
"\n"
]
}
Expand Down
32 changes: 16 additions & 16 deletions docs/advanced_examples/EncryptedPandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -492,31 +492,31 @@
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>..c0e7495b02..</td>\n",
" <td>..c9fe2ab2b6..</td>\n",
" <td>..5da7a2af7f..</td>\n",
" <td>..4817831af6..</td>\n",
" <td>..f31d8b9966..</td>\n",
" <td>..0f156139c2..</td>\n",
" <td>..5f4937488f..</td>\n",
" <td>..d276b7d5e3..</td>\n",
" </tr>\n",
" <tr>\n",
" <td>..bd9797adb8..</td>\n",
" <td>..414c3958e0..</td>\n",
" <td>..46969bfe5f..</td>\n",
" <td>..ae8a967d66..</td>\n",
" <td>..c78ffe3528..</td>\n",
" <td>..500bea009a..</td>\n",
" <td>..d954585724..</td>\n",
" <td>..8ea6a7201e..</td>\n",
" </tr>\n",
" <tr>\n",
" <td>..8f5fe5220d..</td>\n",
" <td>..dae7c10e46..</td>\n",
" <td>..d118420501..</td>\n",
" <td>..4df98945c3..</td>\n",
" <td>..4648f2ace2..</td>\n",
" <td>..203a97f4bb..</td>\n",
" <td>..4bdefb05fa..</td>\n",
" <td>..faef1cfbdb..</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>"
],
"text/plain": [
" index day time size\n",
"..c0e7495b02.. ..c9fe2ab2b6.. ..5da7a2af7f.. ..4817831af6..\n",
"..bd9797adb8.. ..414c3958e0.. ..46969bfe5f.. ..ae8a967d66..\n",
"..8f5fe5220d.. ..dae7c10e46.. ..d118420501.. ..4df98945c3.."
"..f31d8b9966.. ..0f156139c2.. ..5f4937488f.. ..d276b7d5e3..\n",
"..c78ffe3528.. ..500bea009a.. ..d954585724.. ..8ea6a7201e..\n",
"..4648f2ace2.. ..203a97f4bb.. ..4bdefb05fa.. ..faef1cfbdb.."
]
},
"execution_count": 9,
Expand Down Expand Up @@ -584,7 +584,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Total execution time: 6.82s\n"
"Total execution time: 8.21s\n"
]
}
],
Expand Down
Loading

0 comments on commit 41f3da7

Please sign in to comment.