mirror of
https://github.com/frankwxu/AI4DigitalForensics.git
synced 2026-02-21 11:17:53 +00:00
fix cyfi445 lab 7
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 136,
|
||||
"execution_count": 1,
|
||||
"id": "5eedde1f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -74,7 +74,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 137,
|
||||
"execution_count": 2,
|
||||
"id": "c6fcc605",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -126,7 +126,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 138,
|
||||
"execution_count": 3,
|
||||
"id": "a899d7d6",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -188,14 +188,14 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 139,
|
||||
"execution_count": 4,
|
||||
"id": "84f1138d",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "5caef5ee08fb4e60a2b82fc83afbdd6f",
|
||||
"model_id": "1fc20f3c750c45d6a8c7eb4998fd12ab",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
@@ -212,7 +212,7 @@
|
||||
"<function __main__.plot_neuron(w=2.0, b=-10.0)>"
|
||||
]
|
||||
},
|
||||
"execution_count": 139,
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -284,7 +284,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 140,
|
||||
"execution_count": 5,
|
||||
"id": "e347fec9",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -354,7 +354,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 141,
|
||||
"execution_count": 6,
|
||||
"id": "326de3e1",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -362,16 +362,16 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Epoch [10000/40000], Loss: 0.1517\n",
|
||||
"Epoch [20000/40000], Loss: 0.1120\n",
|
||||
"Epoch [30000/40000], Loss: 0.0940\n",
|
||||
"Epoch [40000/40000], Loss: 0.0829\n",
|
||||
"Epoch [10000/40000], Loss: 0.1531\n",
|
||||
"Epoch [20000/40000], Loss: 0.1125\n",
|
||||
"Epoch [30000/40000], Loss: 0.0943\n",
|
||||
"Epoch [40000/40000], Loss: 0.0831\n",
|
||||
"\n",
|
||||
"Model Parameters: w = 1.8337, b = -9.9123\n",
|
||||
"Model Parameters: w = 1.8303, b = -9.8934\n",
|
||||
"\n",
|
||||
"Tumor Sizes: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n",
|
||||
"True Labels: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1]\n",
|
||||
"Predicted Probabilities: [0.0003099874884355813, 0.0019363445462659001, 0.01199304684996605, 0.07058683782815933, 0.3221176862716675, 0.74830561876297, 0.9489838480949402, 0.9914809465408325, 0.9986286163330078, 0.9997805953025818]\n",
|
||||
"Predicted Probabilities: [0.0003148354298900813, 0.0019599415827542543, 0.012097183614969254, 0.07093961536884308, 0.3225499391555786, 0.7480406165122986, 0.9487512111663818, 0.9914116859436035, 0.998612642288208, 0.9997772574424744]\n",
|
||||
"Predicted Labels: [0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0]\n"
|
||||
]
|
||||
}
|
||||
@@ -447,7 +447,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 142,
|
||||
"execution_count": 7,
|
||||
"id": "de9d2f63",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -457,7 +457,7 @@
|
||||
"text": [
|
||||
"\n",
|
||||
"Unseen Tumor Size: 5.5\n",
|
||||
"Predicted Probability of Malignancy: 0.5431\n",
|
||||
"Predicted Probability of Malignancy: 0.5432\n",
|
||||
"Predicted Label: 1.0 (Malignant)\n"
|
||||
]
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user