With an understanding of neural networks, we will now build some simple examples. First, we will create the functions needed to create a very simple neural network ourselves to better understand what is happening during the modeling process. Afterward, we will use the neuralnet package to build a neural network that solves a task using a simple dataset.
Creating a feedforward network
Writing a neural network with Base R
For this example, we will use Base R to create a very simple neural network from scratch to better understand exactly what is happening at each step. In order to complete this task we will do the following:
- Define the activation function for the neurons in our model
- Create a function that shows the line after...