mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
473 B
473 B
Notes
-
In the
plot_decision_boundaryfunction, why useX = X.to("cpu")instead ofX.cpu()? -
Since softmax maps large numbers to large probabilities and small numbers to small probabilities, to my understanding, it is better to predict directly using
torch.argmaxwithout going through softmax, as softmax is a relatively costly operation. Of course, if we're interested in the probabilities (to show confidence or top-k predictions), softmax should be used.