Skip to content

Commit 96330d6

Browse files
committed
training guide up
1 parent 480c03b commit 96330d6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

examples/tutorials/transformers_advanced_training_guide.ipynb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,16 @@
15501550
"pd.concat([metrics_df.head(5), metrics_df.tail(5)])"
15511551
]
15521552
},
1553+
{
1554+
"cell_type": "markdown",
1555+
"metadata": {},
1556+
"source": [
1557+
"Don't be surprised by the fact that validation loss is less then train loss in the plot below. \n",
1558+
"- First, this is data-specific, you may not see this in other datasets. \n",
1559+
"- Second, validation loss is calculated after the full training epoch while train loss is computed for each batch during training when model still hasn't seen other batches and hasn't updated weights.\n",
1560+
"- Validation loss is calculated only in the last item in validation users history. While train loss for SASRec is calculated for each item in user histor except the first one and the validation one."
1561+
]
1562+
},
15531563
{
15541564
"cell_type": "code",
15551565
"execution_count": 31,
@@ -1755,7 +1765,7 @@
17551765
"source": [
17561766
"### Configs for transformer models\n",
17571767
"\n",
1758-
"`from_config`, `get_config` and `get_params` methods are fully available for transformers just like for any other models."
1768+
"`from_config`, `from_params`, `get_config` and `get_params` methods are fully available for transformers just like for any other models."
17591769
]
17601770
},
17611771
{
@@ -1928,7 +1938,7 @@
19281938
"source": [
19291939
"### Multi-gpu training\n",
19301940
"RecTools models use PyTorch Lightning to handle multi-gpu training.\n",
1931-
"Please refer to lighting documentation for details. We do not cover it in this guide."
1941+
"Please refer to Lightning documentation for details. We do not cover it in this guide."
19321942
]
19331943
}
19341944
],

0 commit comments

Comments
 (0)