Blog

numpy meshgrid loss surface

NumPy Meshgrid: Understanding np.meshgrid()

You can create multi-dimensional coordinate arrays using the np.meshgrid() function, which is also available in PyTorch and TensorFlow. But watch out! PyTorch uses different indexing by default so the results might not be the same.

Numpy Pad: Understanding np.pad()

The np.pad() function has a complex, powerful API. But basic usage is very simple and complex usage is achievable! This post shows you how to use NumPy pad and gives a couple examples.

Installing Packages in a Jupyter Notebook

This post describes a trick for installing/upgrading Python packages in a Jupyter notebook. It’s useful for scratch code, but don’t do this when you need reproducible code.

Connect

Contact

ben [at] sparrow [dot] dev

Email List