So far, we have learned how a DFN works, and about the architecture, and aspects involved in training the network. In this section, we shall build our first DFN using TensorFlow. Building any deep learning would more or less involve the following steps:
- Reading the input data and expected output data (labels)
- Preparing the data in the required format (preprocessing)
- Splitting the data into a training, validation, and testing set (a validation set is sometimes optional)
- Building the model architecture graph along with the loss function and optimizer to update weights
- Running a TensorFlow Session to iterate over data and train the network
- Testing the accuracy of the model over test data