Skip to content

Commit

Permalink
Add explenation to the data recorders notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
knikolaou committed May 17, 2024
1 parent fd80fc1 commit aea81f9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions examples/Using-the-Data-Recorders.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,13 @@
"source": [
"## Create Model and Prepare Recording\n",
"\n",
"Before we train, we need to create a model and prepare the recorders. In this time, we add data and a model to the recorders. Note, any data can be added to the recorders here, even validation data."
"Before we train, we need to create a model and prepare the recorders. \n",
"\n",
"When creating the recorders, we defined the intervals and properties we want to record.\n",
"Here, in the `instantiation` method, we give the recorders data and the functions it needs for recording.\n",
"\n",
"The example below shows that the train recorder gets the train data and the test recorder gets the test data, however, both recorders get the same model, as they operate on the same model.\n",
"Note, any data can be added to the recorders here, even validation data.\n"
]
},
{
Expand Down Expand Up @@ -273,22 +279,22 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2e1c46e2",
"id": "cdd81a2b-0170-4bd7-8a47-eb255092c767",
"metadata": {},
"outputs": [],
"source": [
"train_recorder.load()['loss'].shape"
"train_recorder.store()\n",
"test_recorder.store()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cdd81a2b-0170-4bd7-8a47-eb255092c767",
"id": "2e1c46e2",
"metadata": {},
"outputs": [],
"source": [
"train_recorder.store()\n",
"test_recorder.store()"
"train_recorder.load()['loss'].shape"
]
}
],
Expand Down

0 comments on commit aea81f9

Please sign in to comment.