Cross Entropy Loss in PyTorch

Ben Cook • Posted 2020-07-24 • Last updated 2021-10-14

Cross entropy loss in PyTorch can be a little confusing. Here is a simple explanation of how it works for people who get stuck.

Pairwise Distance in NumPy

Ben Cook • Posted 2020-06-01 • Last updated 2021-10-15

You can do vectorized pairwise distance calculations in NumPy (without using SciPy). This lets you extend pairwise computations to other kinds of functions.

Sending a Text Message with AWS SNS

Ben Cook • Posted 2017-03-02 • Last updated 2021-10-21
text message sns

SNS is AWS’s pub-sub service. It’s useful for sending and receiving alerts for events you care about. It can also be used to send SMS messages.

Some Cool IPython Tips

Ben Cook • Posted 2017-02-25 • Last updated 2021-10-15

The IPython shell is a fast way to evaluate small bits of code. It also functions as a mighty fine calculator.