Skip to content

Commit

Permalink
Add nb to plot model training
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhanhx committed Aug 16, 2021
1 parent 49bfead commit 41d0d12
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions notebooks/graph.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"source": [
"%load_ext tensorboard"
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 2,
"source": [
"!pwd"
],
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"/storage/anhvd/workspace/5th_place_phase_2/notebooks\r\n"
]
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"One can simply linkk the log folder of a model folder like this to plot the model's training graph."
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 3,
"source": [
"%tensorboard --logdir ../model_asset/ph2_output_pa_dev_seen_unseen_0_3420/hm/large/log --port 42042"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <iframe id=\"tensorboard-frame-aa5c10f558bcfd8f\" width=\"100%\" height=\"800\" frameborder=\"0\">\n",
" </iframe>\n",
" <script>\n",
" (function() {\n",
" const frame = document.getElementById(\"tensorboard-frame-aa5c10f558bcfd8f\");\n",
" const url = new URL(\"/\", window.location);\n",
" const port = 42042;\n",
" if (port) {\n",
" url.port = port;\n",
" }\n",
" frame.src = url;\n",
" })();\n",
" </script>\n",
" "
]
},
"metadata": {}
}
],
"metadata": {
"scrolled": true
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit 41d0d12

Please sign in to comment.