Skip to content

Commit

Permalink
chore: debug decision tree classifier notebook (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft authored Apr 26, 2024
1 parent 3064d8f commit 8a9eb9d
Show file tree
Hide file tree
Showing 24 changed files with 2,135 additions and 1,093 deletions.
14 changes: 8 additions & 6 deletions docs/advanced_examples/ClassifierComparison.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/advanced_examples/ClientServer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@
"output_type": "stream",
"text": [
"total 76K\r\n",
"-rw-r--r-- 1 root root 59K Feb 27 11:51 client.zip\r\n",
"-rw-r--r-- 1 root root 9.4K Feb 27 11:51 server.zip\r\n",
"-rw-r--r-- 1 root root 76 Feb 27 11:51 versions.json\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 @@ -177,7 +177,7 @@
"output_type": "stream",
"text": [
"total 12K\r\n",
"-rw-r--r-- 1 root root 9.4K Feb 27 11:51 server.zip\r\n"
"-rw-r--r-- 1 root root 9.5K Apr 25 20:00 server.zip\r\n"
]
}
],
Expand All @@ -197,7 +197,7 @@
"output_type": "stream",
"text": [
"total 60K\r\n",
"-rw-r--r-- 1 root root 59K Feb 27 11:51 client.zip\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 /tmp/tmpb10g3py3/6318749875182965247\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.74 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.

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.9294174079511626\n"
"Best score: 0.9293680390146857\n"
]
}
],
Expand All @@ -90,7 +90,7 @@
" cv=10,\n",
" scoring=\"average_precision\",\n",
" error_score=\"raise\",\n",
" n_jobs=-1,\n",
" n_jobs=1,\n",
")\n",
"\n",
"gs_results = grid_search.fit(x_train, y_train)\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.53 seconds per sample\n"
"Execution time: 0.58 seconds per sample\n"
]
}
],
Expand Down
115 changes: 65 additions & 50 deletions docs/advanced_examples/DecisionTreeRegressor.ipynb

Large diffs are not rendered by default.

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>..f38deaf217..</td>\n",
" <td>..80e5b1f4b8..</td>\n",
" <td>..20f9749c9b..</td>\n",
" <td>..9e89289f5d..</td>\n",
" <td>..f31d8b9966..</td>\n",
" <td>..0f156139c2..</td>\n",
" <td>..5f4937488f..</td>\n",
" <td>..d276b7d5e3..</td>\n",
" </tr>\n",
" <tr>\n",
" <td>..e062ad508e..</td>\n",
" <td>..7b70a5be13..</td>\n",
" <td>..ec553d68f9..</td>\n",
" <td>..38cf3577b8..</td>\n",
" <td>..c78ffe3528..</td>\n",
" <td>..500bea009a..</td>\n",
" <td>..d954585724..</td>\n",
" <td>..8ea6a7201e..</td>\n",
" </tr>\n",
" <tr>\n",
" <td>..f35391bad1..</td>\n",
" <td>..d5c81a8459..</td>\n",
" <td>..b31bf9b2ba..</td>\n",
" <td>..a251141c24..</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",
"..f38deaf217.. ..80e5b1f4b8.. ..20f9749c9b.. ..9e89289f5d..\n",
"..e062ad508e.. ..7b70a5be13.. ..ec553d68f9.. ..38cf3577b8..\n",
"..f35391bad1.. ..d5c81a8459.. ..b31bf9b2ba.. ..a251141c24.."
"..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: 8.27s\n"
"Total execution time: 8.21s\n"
]
}
],
Expand Down
Loading

0 comments on commit 8a9eb9d

Please sign in to comment.