From 58b0067bb6a1c7f3cddf232579493adad0e5f55b Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Tue, 26 Nov 2024 16:46:18 +0100 Subject: [PATCH] docs: train only for 8 epochs to speed up execution The result is not great with 32 epochs, either. --- ...ral_network_for_image_classification.ipynb | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/docs/tutorials/convolutional_neural_network_for_image_classification.ipynb b/docs/tutorials/convolutional_neural_network_for_image_classification.ipynb index ee15eaa03..d7035bb84 100644 --- a/docs/tutorials/convolutional_neural_network_for_image_classification.ipynb +++ b/docs/tutorials/convolutional_neural_network_for_image_classification.ipynb @@ -47,7 +47,6 @@ }, { "cell_type": "code", - "execution_count": null, "id": "initial_id", "metadata": { "collapsed": true @@ -57,7 +56,8 @@ "\n", "images, filepaths = ImageList.from_files(\"data/shapes\", return_filenames=True)" ], - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -84,8 +84,8 @@ "collapsed": false }, "id": "66dcf95a3fa51f23", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -108,8 +108,8 @@ "collapsed": false }, "id": "32056ddf5396e070", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -149,8 +149,8 @@ "collapsed": false }, "id": "806a8091249d533a", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -175,8 +175,8 @@ "collapsed": false }, "id": "af68cc0d32655d32", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -198,15 +198,13 @@ }, { "cell_type": "code", - "source": [ - "cnn_fitted = cnn.fit(dataset, epoch_size=32, batch_size=16)" - ], + "source": "cnn_fitted = cnn.fit(dataset, epoch_size=8, batch_size=16)", "metadata": { "collapsed": false }, "id": "381627a94d500675", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -227,8 +225,8 @@ "collapsed": false }, "id": "62f63dd68362c8b7", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -249,8 +247,8 @@ "collapsed": false }, "id": "779277d73e30554d", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -271,8 +269,8 @@ "collapsed": false }, "id": "a5ddbbfba41aa7f", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", @@ -293,8 +291,8 @@ "collapsed": false }, "id": "7081595d7100fb42", - "execution_count": null, - "outputs": [] + "outputs": [], + "execution_count": null } ], "metadata": {