make performance-speed tradeoff more clear

This commit is contained in:
Daniel Bourke committed 2022-11-14 16:16:42 +10:00
1 parent 42717cd5ec
commit a007626bfc
1 file changed
+4 -3
+4 -3
View File
@@ -3037,15 +3037,16 @@
"source": [
"It looks like our CNN (`FashionMNISTModelV2`) model performed the best (lowest loss, highest accuracy) but had the longest training time.\n",
"\n",
"And our baseline model (`FashionMNISTModelV0`) performed better than `model_1` (`FashionMNISTModelV1`) but took longer to train (this is likely because we used a CPU to train `model_0` but a GPU to train `model_1`).\n",
"And our baseline model (`FashionMNISTModelV0`) performed better than `model_1` (`FashionMNISTModelV1`).\n",
"\n",
"The tradeoffs here are known as the **performance-speed** tradeoff.\n",
"### Performance-speed tradeoff\n",
"\n",
"Something to be aware of in machine learning is the **performance-speed** tradeoff.\n",
"\n",
"Generally, you get better performance out of a larger, more complex model (like we did with `model_2`).\n",
"\n",
"However, this performance increase often comes at a sacrifice of training speed and inference speed.\n",
"\n",
"\n",
"> **Note:** The training times you get will be very dependant on the hardware you use. \n",
">\n",
"> Generally, the more CPU cores you have, the faster your models will train on CPU. And similar for GPUs.\n",