<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>CNN - Tag - Jorgen Bergstrom</title><link>https://bergstrom.org/tags/cnn/</link><description>CNN - Tag - Jorgen Bergstrom</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>Jorgen Bergstrom</copyright><lastBuildDate>Mon, 14 Sep 2026 00:00:00 -0500</lastBuildDate><atom:link href="https://bergstrom.org/tags/cnn/" rel="self" type="application/rss+xml"/><item><title>Rubber or Thermoplastic: a Stress-Strain Image Classifier</title><link>https://bergstrom.org/posts/elastomer_thermoplastic_classifier/</link><pubDate>Mon, 14 Sep 2026 00:00:00 -0500</pubDate><author>Jorgen Bergstrom</author><guid>https://bergstrom.org/posts/elastomer_thermoplastic_classifier/</guid><description>Introduction A common way to learn how Convolutional Neural Networks (CNNs) work is to develop a tool that can classify whether an image is a cat or a dog (in this case all images are either of a cat or of a dog, no other options are allowed). I created an example that does just that.
Since my background is in polymer mechanics, I wanted a more interesting version of this classification task: given an image of a stress-strain curve, decide whether it comes from a rubber material or a thermoplastic.</description></item><item><title>CNN Cats vs Dogs Classification</title><link>https://bergstrom.org/posts/cnn_cats_vs_dogs/</link><pubDate>Sat, 07 Dec 2024 00:00:00 -0500</pubDate><author>Jorgen Bergstrom</author><guid>https://bergstrom.org/posts/cnn_cats_vs_dogs/</guid><description>Introduction In this example I will use the Kaggle cats and dogs dataset to train a CNN to classify if an image is a cat or a dog.
The code below reads all images from a local PetImages folder and splits them into a training and a validation set. Before training, the images are preprocessed with simple data augmentation: random horizontal flips and small rotations are applied to make the model more robust, and the pixel values are rescaled to the range [0, 1].</description></item></channel></rss>