Asjad Naeem
Asjad Naeem
Thankyou for these details.
```python loss_fn = nn.BCELoss() optimizer = torch.optim.SGD(model.parameters(), lr=0.015) history = train(model, num_epochs, train_dl, x_valid, y_valid) from mlxtend.plotting import plot_decision_regions fig = plt.figure(figsize=(16, 4)) ax = fig.add_subplot(1, 3, 1) plt.plot(history[0], lw=4)...
i guess you're getting the error because of these variables you defined. `loss_hist_train` and `loss_hist_valid`, `accuracy_hist_train` and `accuracy_hist_valid`. try running the code as is mentioned in the repository. i did...