(out, yb)
| 181 | # target value, then the prediction was correct. |
| 182 | |
| 183 | def accuracy(out, yb): |
| 184 | preds = torch.argmax(out, dim=1) |
| 185 | return (preds == yb).float().mean() |
| 186 | |
| 187 | ############################################################################### |
| 188 | # Let's check the accuracy of our random model, so we can see if our |