Skip to content

Commit a56ed3e

Browse files
Programmer-RD-AIProgrammer-RD-AI
andcommitted
Update Theory_03.ipynb
Co-Authored-By: Ranuga <[email protected]>
1 parent 7ce11c4 commit a56ed3e

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

Theory_03.ipynb

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"\n",
1212
"There are many filters in the convolutional layers and they have specific tasks of detecting certain parts of the image for example textures, edges, etc...\n",
1313
"\n",
14-
"Essentially there is filter where it goes over the image this is the kernal size then it produces a product of the output and this happens over and over again, the weights and bias of the filter is what is changed overtime"
14+
"Essentially there is filter where it goes over the image this is the kernal size then it produces a product of the output and this happens over and over again, the weights and bias of the filter is what is changed overtime\n",
15+
"\n",
16+
"Pading is where an outside frame of 0's are created on the exterior of an image so that when the kernal goes over, each of the original images pixels gets included in more kernal analysis"
1517
]
1618
},
1719
{
@@ -30,10 +32,49 @@
3032
"Its helful becz it reduces parameters() and computational needs and reduce over fitting, this is due to a sort of generalisation "
3133
]
3234
},
35+
{
36+
"cell_type": "markdown",
37+
"id": "6d29d149-b1c1-40a4-aa7f-fd3bb0f0386b",
38+
"metadata": {},
39+
"source": [
40+
"# Precision, Recall, & F1 Score\n",
41+
"\n",
42+
"TP - True Positive (Correctly Guessed as True)\n",
43+
"FP - False Positive (Wrongly Gussed as True)\n",
44+
"FN - Fale Negative (Wronly Guessed as False)\n",
45+
"TN - True Negative (Correctly Gussed as False\n",
46+
"\n",
47+
"## Accuracy\n",
48+
"\n",
49+
"Accuracy = TP + TN / TP + TN + FP + FN\n",
50+
"\n",
51+
"How many answers we got, this does take care if that correct data is True or False\n",
52+
"\n",
53+
"It does work that well in biased datasets\n",
54+
"\n",
55+
"## Preccision\n",
56+
"\n",
57+
"Precision = TP / TP + FP\n",
58+
"\n",
59+
"Minimise the number of wrong positive / negative\n",
60+
"\n",
61+
"## Recall\n",
62+
"\n",
63+
"Precision = TP / TP + FN\n",
64+
"\n",
65+
"It asks the question the postive labels we got out of all the possible labels\n",
66+
"\n",
67+
"## F1 Score\n",
68+
"\n",
69+
"F1 = 2 * TP / 2 * TP + FP + FN\n",
70+
"\n",
71+
"How quality the data is"
72+
]
73+
},
3374
{
3475
"cell_type": "code",
3576
"execution_count": null,
36-
"id": "2953d201-aede-45ad-9607-d9f1081dbdde",
77+
"id": "8b6e9816-33b4-40a8-9ce2-f3da6e6310e3",
3778
"metadata": {},
3879
"outputs": [],
3980
"source": []

0 commit comments

Comments
 (0)