Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kithminrw committed May 15, 2024
1 parent 1a895d0 commit 0c6fc79
Show file tree
Hide file tree
Showing 46 changed files with 5,449 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{"obj": {"type": "AssignString", "path": ["sys", "name"], "value": "lotus-alligator"}, "version": 1, "at": 1715787747.029621}
{"obj": {"type": "AssignString", "path": ["sys", "description"], "value": ""}, "version": 2, "at": 1715787747.03154}
{"obj": {"type": "AssignString", "path": ["monitoring", "6243011b", "hostname"], "value": "Kithmins-Air"}, "version": 3, "at": 1715787747.031754}
{"obj": {"type": "AssignString", "path": ["sys", "hostname"], "value": "Kithmins-Air"}, "version": 4, "at": 1715787747.0321012}
{"obj": {"type": "AssignString", "path": ["monitoring", "6243011b", "pid"], "value": "49986"}, "version": 5, "at": 1715787747.032264}
{"obj": {"type": "AssignString", "path": ["monitoring", "6243011b", "tid"], "value": "8632042048"}, "version": 6, "at": 1715787747.03245}
{"obj": {"type": "AddStrings", "path": ["sys", "tags"], "values": ["script", "quickstart"]}, "version": 7, "at": 1715787747.0331159}
{"obj": {"type": "AssignBool", "path": ["sys", "failed"], "value": false}, "version": 8, "at": 1715787747.033248}
{"obj": {"type": "AssignFloat", "path": ["seed"], "value": 0.42}, "version": 9, "at": 1715787747.050401}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": -0.42493593934832596, "step": null, "ts": 1715787747.0514822}]}, "version": 10, "at": 1715787747.05157}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 1.8784775677773253, "step": null, "ts": 1715787747.05213}]}, "version": 11, "at": 1715787747.0521548}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.3186729742910698, "step": null, "ts": 1715787747.0553558}]}, "version": 12, "at": 1715787747.055396}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.7546994354907539, "step": null, "ts": 1715787747.0556512}]}, "version": 13, "at": 1715787747.0556722}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.4937102134703386, "step": null, "ts": 1715787747.055885}]}, "version": 14, "at": 1715787747.055902}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.6719625396380008, "step": null, "ts": 1715787747.056215}]}, "version": 15, "at": 1715787747.0563068}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.6741092025559305, "step": null, "ts": 1715787747.056801}]}, "version": 16, "at": 1715787747.0568871}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.5013724896217459, "step": null, "ts": 1715787747.0570822}]}, "version": 17, "at": 1715787747.0571158}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.7590569610974145, "step": null, "ts": 1715787747.0573142}]}, "version": 18, "at": 1715787747.057333}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.3963717053811546, "step": null, "ts": 1715787747.057408}]}, "version": 19, "at": 1715787747.057423}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.6987935341407319, "step": null, "ts": 1715787747.057493}]}, "version": 20, "at": 1715787747.057507}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.3268348677310047, "step": null, "ts": 1715787747.057635}]}, "version": 21, "at": 1715787747.057654}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.71997414841864, "step": null, "ts": 1715787747.057729}]}, "version": 22, "at": 1715787747.0577438}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.32178036393956, "step": null, "ts": 1715787747.057806}]}, "version": 23, "at": 1715787747.057819}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.7156467124002911, "step": null, "ts": 1715787747.057916}]}, "version": 24, "at": 1715787747.057929}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.18268291572198497, "step": null, "ts": 1715787747.058005}]}, "version": 25, "at": 1715787747.058018}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.7421475908802186, "step": null, "ts": 1715787747.058079}]}, "version": 26, "at": 1715787747.058092}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.21055456315582682, "step": null, "ts": 1715787747.058149}]}, "version": 27, "at": 1715787747.058162}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.7739719089797974, "step": null, "ts": 1715787747.0582201}]}, "version": 28, "at": 1715787747.058232}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.2180960980685137, "step": null, "ts": 1715787747.058421}]}, "version": 29, "at": 1715787747.05844}
{"obj": {"type": "UploadFile", "path": ["single_image"], "ext": "png", "file_path": "/Users/kithminrw/Documents/GitHub/ml-nn-zero2hero/notebooks/01/Lenna_test_image.png", "tmp_file_name": null, "clean_after_upload": false}, "version": 30, "at": 1715787747.059581}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"mode": "async",
"containerId": "9c0ccbea-7fe3-4a1a-86f6-a180506ee1d1",
"containerType": "run",
"structureVersion": 3,
"os": "macOS-10.16-x86_64-i386-64bit",
"pythonVersion": "3.9.12 (main, Apr 5 2022, 01:53:17) \n[Clang 12.0.0 ]",
"neptuneClientVersion": "1.10.4",
"createdAt": "2024-05-15T15:42:26.833441+00:00"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{"obj": {"type": "AssignString", "path": ["sys", "name"], "value": "lotus-alligator"}, "version": 1, "at": 1715787841.326375}
{"obj": {"type": "AssignString", "path": ["sys", "description"], "value": ""}, "version": 2, "at": 1715787841.327096}
{"obj": {"type": "AssignString", "path": ["monitoring", "6243011b", "hostname"], "value": "Kithmins-Air"}, "version": 3, "at": 1715787841.327293}
{"obj": {"type": "AssignString", "path": ["sys", "hostname"], "value": "Kithmins-Air"}, "version": 4, "at": 1715787841.327421}
{"obj": {"type": "AssignString", "path": ["monitoring", "6243011b", "pid"], "value": "49986"}, "version": 5, "at": 1715787841.327542}
{"obj": {"type": "AssignString", "path": ["monitoring", "6243011b", "tid"], "value": "8632042048"}, "version": 6, "at": 1715787841.327658}
{"obj": {"type": "AddStrings", "path": ["sys", "tags"], "values": ["script", "quickstart"]}, "version": 7, "at": 1715787841.328017}
{"obj": {"type": "AssignBool", "path": ["sys", "failed"], "value": false}, "version": 8, "at": 1715787841.328174}
{"obj": {"type": "AssignFloat", "path": ["seed"], "value": 0.42}, "version": 9, "at": 1715787841.339565}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": -0.5938376658588288, "step": null, "ts": 1715787841.342067}]}, "version": 10, "at": 1715787841.342156}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 1.848463445927133, "step": null, "ts": 1715787841.343221}]}, "version": 11, "at": 1715787841.343244}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.4749217808982456, "step": null, "ts": 1715787841.346414}]}, "version": 12, "at": 1715787841.346439}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.6005004453237949, "step": null, "ts": 1715787841.346612}]}, "version": 13, "at": 1715787841.346638}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.44309080709142795, "step": null, "ts": 1715787841.346785}]}, "version": 14, "at": 1715787841.346804}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.5097584710400791, "step": null, "ts": 1715787841.347629}]}, "version": 15, "at": 1715787841.347646}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.6468185724041081, "step": null, "ts": 1715787841.347713}]}, "version": 16, "at": 1715787841.347727}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.20513492621011067, "step": null, "ts": 1715787841.3477912}]}, "version": 17, "at": 1715787841.347805}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.8978632242115379, "step": null, "ts": 1715787841.34792}]}, "version": 18, "at": 1715787841.3479328}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.18795228767344913, "step": null, "ts": 1715787841.347991}]}, "version": 19, "at": 1715787841.3480031}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.8771370750684787, "step": null, "ts": 1715787841.34807}]}, "version": 20, "at": 1715787841.348083}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.19403765357928882, "step": null, "ts": 1715787841.34814}]}, "version": 21, "at": 1715787841.348153}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.8555450992143976, "step": null, "ts": 1715787841.34831}]}, "version": 22, "at": 1715787841.348323}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.05681426674835699, "step": null, "ts": 1715787841.348379}]}, "version": 23, "at": 1715787841.348392}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.9734765442338519, "step": null, "ts": 1715787841.348524}]}, "version": 24, "at": 1715787841.348536}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.09111777323500997, "step": null, "ts": 1715787841.349003}]}, "version": 25, "at": 1715787841.349024}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.9692402678490251, "step": null, "ts": 1715787841.349123}]}, "version": 26, "at": 1715787841.349139}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.06169672822339832, "step": null, "ts": 1715787841.349235}]}, "version": 27, "at": 1715787841.3492491}
{"obj": {"type": "LogFloats", "path": ["accuracy"], "values": [{"value": 0.9605374545098048, "step": null, "ts": 1715787841.349335}]}, "version": 28, "at": 1715787841.349348}
{"obj": {"type": "LogFloats", "path": ["loss"], "values": [{"value": 0.04519913786661289, "step": null, "ts": 1715787841.349407}]}, "version": 29, "at": 1715787841.34942}
{"obj": {"type": "UploadFile", "path": ["single_image"], "ext": "png", "file_path": "/Users/kithminrw/Documents/GitHub/ml-nn-zero2hero/notebooks/01/Lenna_test_image.png", "tmp_file_name": null, "clean_after_upload": false}, "version": 30, "at": 1715787841.350143}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"mode": "async",
"containerId": "9c0ccc7a-65c8-443b-9ba1-3c0fc5aabec1",
"containerType": "run",
"structureVersion": 3,
"os": "macOS-10.16-x86_64-i386-64bit",
"pythonVersion": "3.9.12 (main, Apr 5 2022, 01:53:17) \n[Clang 12.0.0 ]",
"neptuneClientVersion": "1.10.4",
"createdAt": "2024-05-15T15:44:01.138065+00:00"
}
161 changes: 161 additions & 0 deletions notebooks/01/NB_1_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,167 @@
"# Make a prediction for Cyprus\n",
"print(model.predict(X_new)) # outputs [[6.33333333]]"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Failed to detect the name of this notebook, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable to enable code saving.\n",
"\u001b[34m\u001b[1mwandb\u001b[0m: Currently logged in as: \u001b[33mkithminrw\u001b[0m (\u001b[33mkithminrw-ai\u001b[0m). Use \u001b[1m`wandb login --relogin`\u001b[0m to force relogin\n"
]
},
{
"data": {
"text/html": [
"Tracking run with wandb version 0.17.0"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"Run data is saved locally in <code>/Users/kithminrw/Documents/GitHub/ml-nn-zero2hero/notebooks/01/wandb/run-20240515_090928-2pcb5zzn</code>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"Syncing run <strong><a href='https://wandb.ai/kithminrw-ai/test-project/runs/2pcb5zzn' target=\"_blank\">leafy-valley-3</a></strong> to <a href='https://wandb.ai/kithminrw-ai/test-project' target=\"_blank\">Weights & Biases</a> (<a href='https://wandb.me/run' target=\"_blank\">docs</a>)<br/>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
" View project at <a href='https://wandb.ai/kithminrw-ai/test-project' target=\"_blank\">https://wandb.ai/kithminrw-ai/test-project</a>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
" View run at <a href='https://wandb.ai/kithminrw-ai/test-project/runs/2pcb5zzn' target=\"_blank\">https://wandb.ai/kithminrw-ai/test-project/runs/2pcb5zzn</a>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3c2b2fe04528445f99a55852082db0bd",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(Label(value='0.023 MB of 0.023 MB uploaded\\r'), FloatProgress(value=1.0, max=1.0)))"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<style>\n",
" table.wandb td:nth-child(1) { padding: 0 10px; text-align: left ; width: auto;} td:nth-child(2) {text-align: left ; width: 100%}\n",
" .wandb-row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; width: 100% }\n",
" .wandb-col { display: flex; flex-direction: column; flex-basis: 100%; flex: 1; padding: 10px; }\n",
" </style>\n",
"<div class=\"wandb-row\"><div class=\"wandb-col\"><h3>Run history:</h3><br/><table class=\"wandb\"><tr><td>acc</td><td>▁▄▇██▇▇█</td></tr><tr><td>loss</td><td>█▇▅▁▃▂▁▁</td></tr></table><br/></div><div class=\"wandb-col\"><h3>Run summary:</h3><br/><table class=\"wandb\"><tr><td>acc</td><td>0.81072</td></tr><tr><td>loss</td><td>0.1592</td></tr></table><br/></div></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
" View run <strong style=\"color:#cdcd00\">leafy-valley-3</strong> at: <a href='https://wandb.ai/kithminrw-ai/test-project/runs/2pcb5zzn' target=\"_blank\">https://wandb.ai/kithminrw-ai/test-project/runs/2pcb5zzn</a><br/> View project at: <a href='https://wandb.ai/kithminrw-ai/test-project' target=\"_blank\">https://wandb.ai/kithminrw-ai/test-project</a><br/>Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"Find logs at: <code>./wandb/run-20240515_090928-2pcb5zzn/logs</code>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import wandb\n",
"import random\n",
"\n",
"# start a new wandb run to track this script\n",
"wandb.init(\n",
" # set the wandb project where this run will be logged\n",
" project=\"test-project\",\n",
"\n",
" # track hyperparameters and run metadata\n",
" config={\n",
" \"learning_rate\": 0.02,\n",
" \"architecture\": \"CNN\",\n",
" \"dataset\": \"CIFAR-100\",\n",
" \"epochs\": 10,\n",
" }\n",
")\n",
"\n",
"# simulate training\n",
"epochs = 10\n",
"offset = random.random() / 5\n",
"for epoch in range(2, epochs):\n",
" acc = 1 - 2 ** -epoch - random.random() / epoch - offset\n",
" loss = 2 ** -epoch + random.random() / epoch + offset\n",
"\n",
" # log metrics to wandb\n",
" wandb.log({\"acc\": acc, \"loss\": loss})\n",
"\n",
"# [optional] finish the wandb run, necessary in notebooks\n",
"wandb.finish()"
]
}
],
"metadata": {
Expand Down
Empty file.
1 change: 1 addition & 0 deletions notebooks/01/wandb/debug-internal.log
1 change: 1 addition & 0 deletions notebooks/01/wandb/debug.log
1 change: 1 addition & 0 deletions notebooks/01/wandb/latest-run
Loading

0 comments on commit 0c6fc79

Please sign in to comment.