4-6-1-16. Dropout Solution

Hi. Here’s my solution for your building and training this network using dropout now. Just like I showed you before, we can define our dropout module as self.dropout and then nn.dropout to give it some drop probability. So, in this case, 20 percent, and then just adding it to our forward method now on each … Read more

4-6-1-10. Network Architectures Solution

Hi and welcome back. Here’s my solution for this model that uses a LogSoftmax output. It is a pretty similar to what I built before with an index sequential. So, we just use a linear transformation, ReLU, linear transformation, ReLU, another linear transformation for output and then we can pass this to our LogSoftmax module. … Read more

4-6-1-9. Network Architectures in PyTorch

Hello, everyone, and welcome back. So, in this video and in this notebook, I’ll be showing you how to actually train neural networks in PyTorch. So, previously, we saw how to define neural networks in PyTorch using the nn module, but now we’re going to see how we actually take one of these networks that … Read more