Below are digital resources that complement the book Practical Machine Learning with R: Tutorials and Case Studies.
A video from StatQuest by Josh Starmer. This video is Part 1 from a series of eight videos about Neural Networks. While most of the videos exceed the scope of this book, Part 1 complements topics in the book.
This is a blog post by Carsten Lange that shows how two Rectified Linear
Unit (ReLU) activation functions can be combined into a complete step function (squashing function). The post includes a simulation that allows for changing the beta values of two ReLU functions with the goal of creating a complete step function.
Here you can download an R script to tune and train a neural network to predict diamond prices. The R script contains similar code as the related interactive section of the book. In contrast to the interactive section, the code runs in RStudio instead of a browser, and the maximum runtime is not restricted.
The R script loads the complete set of observations from the diamonds dataset, and all hyper-parameters can be tuned, The maximum number of epochs is set to 1000 and can be changed.
It is recommended that you experiment with tuning settings in the R script (see Step 5) and try to improve the cross-validation results. At the very end of the R script, you find sample tuning settings that produce relatively good results but require between one to several hours of computing time, depending on your computer. Use the sample tuning setting only after you have experimented with the tuning, and then see if your results can beat the sample tuning results.
This video provides an introduction to Neural Networks. The video is part of an IBM series for Machine Learning. It is easy to understand and one of the most viewed videos about neural networks on YouTube.
Using Keras and Tensor Flow to predict images.
A basic introduction to neural networks by Brandon Rohrer. The video uses a four pixel image example to introduce the principles of neural networks in a little more than 10 minutes. The video has more than a million viewers.
This R script shows how well a neural network can approximate non-linear data, given that it has enough hidden neurons. The script includes code to visualize the approximation in 3D (the related packages have to be installed before).
The R script also shows that an extremely good approximation of the training data usually leads to the problem of overlearning.
This is the first video of a series of videos about Deep Learning by 3Blue1Brown. This video series is of very high quality and extremely successful on YouTube. The video series is more advanced than the level of the book but well worth exploring.
This is a StatQuest video about Neural Networks from a series of eight videos. This video covers Rectified Linear Unit activation function.
The process of setting the hyper-parameters requires expertise and extensive trial and error. There are no simple and easy ways to set hyper-parameters - specifically, learning rate, batch size, momentum, and weight decay.
This article provides an intuitive and broad overview about neural networks.