Skip to content

Commit

Permalink
chore: refresh CreditScoring notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft authored and github-actions[bot] committed Oct 3, 2023
1 parent 4ff1f35 commit e31d503
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions use_case_examples/credit_scoring/CreditScoring.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -385,7 +385,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -544,7 +544,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -610,18 +610,18 @@
" <td>18.0</td>\n",
" <td>0.824</td>\n",
" <td>1192.0</td>\n",
" <td>0.0</td>\n",
" <td>0.001</td>\n",
" <td>0.824</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>DecisionTreeClassifier (sklearn)</td>\n",
" <td>1192</td>\n",
" <td></td>\n",
" <td>0.881</td>\n",
" <td>0.788</td>\n",
" <td>0.842</td>\n",
" <td>0.757</td>\n",
" <td>0.879</td>\n",
" <td>0.783</td>\n",
" <td>0.843</td>\n",
" <td>0.750</td>\n",
" <td></td>\n",
" <td></td>\n",
" <td></td>\n",
Expand All @@ -639,19 +639,19 @@
" <td>0.670</td>\n",
" <td>4.0</td>\n",
" <td>0.848</td>\n",
" <td>5.0</td>\n",
" <td>0.91</td>\n",
" <td>0.8</td>\n",
" <td>1192.0</td>\n",
" <td>0.194</td>\n",
" <td>0.848</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>RandomForestClassifier (sklearn)</td>\n",
" <td>1192</td>\n",
" <td></td>\n",
" <td>0.874</td>\n",
" <td>0.757</td>\n",
" <td>0.863</td>\n",
" <td>0.715</td>\n",
" <td>0.872</td>\n",
" <td>0.761</td>\n",
" <td>0.839</td>\n",
" <td>0.724</td>\n",
" <td></td>\n",
" <td></td>\n",
" <td></td>\n",
Expand All @@ -663,15 +663,15 @@
" <td>RandomForestClassifier (Concrete ML)</td>\n",
" <td>1192</td>\n",
" <td>3.0</td>\n",
" <td>0.841</td>\n",
" <td>0.629</td>\n",
" <td>0.890</td>\n",
" <td>0.606</td>\n",
" <td>0.840</td>\n",
" <td>0.645</td>\n",
" <td>0.836</td>\n",
" <td>0.618</td>\n",
" <td>4.0</td>\n",
" <td>0.841</td>\n",
" <td>5.0</td>\n",
" <td>1.557</td>\n",
" <td>0.6</td>\n",
" <td>0.84</td>\n",
" <td>1192.0</td>\n",
" <td>0.295</td>\n",
" <td>0.84</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
Expand Down Expand Up @@ -699,9 +699,9 @@
" <td>0.619</td>\n",
" <td>4.0</td>\n",
" <td>0.841</td>\n",
" <td>5.0</td>\n",
" <td>1.414</td>\n",
" <td>0.8</td>\n",
" <td>1192.0</td>\n",
" <td>0.226</td>\n",
" <td>0.841</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -721,35 +721,35 @@
" Accuracy (clear) F1 (clear) Precision (clear) Recall (clear) \\\n",
"0 0.824 0.627 0.748 0.606 \n",
"1 0.824 0.627 0.748 0.606 \n",
"2 0.881 0.788 0.842 0.757 \n",
"2 0.879 0.783 0.843 0.750 \n",
"3 0.852 0.705 0.818 0.670 \n",
"4 0.874 0.757 0.863 0.715 \n",
"5 0.841 0.629 0.890 0.606 \n",
"4 0.872 0.761 0.839 0.724 \n",
"5 0.840 0.645 0.836 0.618 \n",
"6 0.888 0.806 0.846 0.780 \n",
"7 0.841 0.647 0.848 0.619 \n",
"\n",
" max bit-width Accuracy (simulated) FHE samples \\\n",
"0 \n",
"1 18.0 0.824 1192.0 \n",
"2 \n",
"3 4.0 0.848 5.0 \n",
"3 4.0 0.848 1192.0 \n",
"4 \n",
"5 4.0 0.841 5.0 \n",
"5 4.0 0.84 1192.0 \n",
"6 \n",
"7 4.0 0.841 5.0 \n",
"7 4.0 0.841 1192.0 \n",
"\n",
" FHE execution time (second per sample) Accuracy (FHE) \n",
"0 \n",
"1 0.0 0.824 \n",
"1 0.001 0.824 \n",
"2 \n",
"3 0.91 0.8 \n",
"3 0.194 0.848 \n",
"4 \n",
"5 1.557 0.6 \n",
"5 0.295 0.84 \n",
"6 \n",
"7 1.414 0.8 "
"7 0.226 0.841 "
]
},
"execution_count": 14,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit e31d503

Please sign in to comment.