made modified noteboo to exploit GPU but overfits

This commit is contained in:
KeshavAnandCode
2026-03-18 18:41:49 -05:00
parent bde3b97266
commit 4d9bf5965b
2 changed files with 591 additions and 33 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 17,
"id": "7a37220a",
"metadata": {},
"outputs": [
@@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 18,
"id": "d318d1f0",
"metadata": {},
"outputs": [
@@ -61,7 +61,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 19,
"id": "5604ace3",
"metadata": {},
"outputs": [
@@ -110,7 +110,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 20,
"id": "3cedd586",
"metadata": {},
"outputs": [
@@ -150,7 +150,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 21,
"id": "8f556b22",
"metadata": {},
"outputs": [
@@ -184,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 22,
"id": "37793c77",
"metadata": {},
"outputs": [
@@ -222,7 +222,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 23,
"id": "f68c1a25",
"metadata": {},
"outputs": [
@@ -257,7 +257,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 24,
"id": "e1539eaa",
"metadata": {},
"outputs": [
@@ -289,7 +289,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 25,
"id": "d1b7d9ca",
"metadata": {},
"outputs": [
@@ -347,7 +347,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 26,
"id": "54d11a04",
"metadata": {},
"outputs": [],
@@ -370,7 +370,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 27,
"id": "374d0590",
"metadata": {},
"outputs": [
@@ -378,16 +378,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch 1: Loss=1.575, Accuracy=50.54%\n",
"Epoch 2: Loss=1.196, Accuracy=60.35%\n",
"Epoch 3: Loss=1.018, Accuracy=64.98%\n",
"Epoch 4: Loss=0.909, Accuracy=68.58%\n",
"Epoch 5: Loss=0.842, Accuracy=70.87%\n",
"Epoch 6: Loss=0.784, Accuracy=72.83%\n",
"Epoch 7: Loss=0.738, Accuracy=74.24%\n",
"Epoch 8: Loss=0.703, Accuracy=75.30%\n",
"Epoch 9: Loss=0.671, Accuracy=76.30%\n",
"Epoch 10: Loss=0.641, Accuracy=77.64%\n",
"Epoch 1: Loss=1.626, Accuracy=45.59%\n",
"Epoch 2: Loss=1.137, Accuracy=60.53%\n",
"Epoch 3: Loss=0.992, Accuracy=65.56%\n",
"Epoch 4: Loss=0.911, Accuracy=68.28%\n",
"Epoch 5: Loss=0.853, Accuracy=70.51%\n",
"Epoch 6: Loss=0.806, Accuracy=72.12%\n",
"Epoch 7: Loss=0.753, Accuracy=73.36%\n",
"Epoch 8: Loss=0.708, Accuracy=75.08%\n",
"Epoch 9: Loss=0.669, Accuracy=76.77%\n",
"Epoch 10: Loss=0.637, Accuracy=77.62%\n",
"Finished Training\n"
]
}
@@ -425,7 +425,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 28,
"id": "2bf2b9a2",
"metadata": {},
"outputs": [],
@@ -444,7 +444,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 29,
"id": "bc158602",
"metadata": {},
"outputs": [
@@ -452,7 +452,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Test Accuracy: 74.53%\n"
"Test Accuracy: 73.82%\n"
]
}
],
@@ -474,7 +474,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 30,
"id": "8cc7ed40",
"metadata": {},
"outputs": [
@@ -482,14 +482,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy for class: Bicycle is 43.5%\n",
"Accuracy for class: Bus is 53.8%\n",
"Accuracy for class: Car is 87.6%\n",
"Accuracy for class: Motorcycle is 75.2%\n",
"Accuracy for class: NonVehicles is 99.0%\n",
"Accuracy for class: Taxi is 20.0%\n",
"Accuracy for class: Truck is 13.9%\n",
"Accuracy for class: Van is 24.7%\n"
"Accuracy for class: Bicycle is 60.3%\n",
"Accuracy for class: Bus is 84.7%\n",
"Accuracy for class: Car is 74.3%\n",
"Accuracy for class: Motorcycle is 59.7%\n",
"Accuracy for class: NonVehicles is 99.9%\n",
"Accuracy for class: Taxi is 35.9%\n",
"Accuracy for class: Truck is 16.4%\n",
"Accuracy for class: Van is 27.3%\n"
]
}
],