The Keras Dense Layer

Ben Cook • Posted 2020-12-31 • Last updated 2021-03-24

The Keras dense layer can be a little confusing. This post will give you everything you need to start using it.

Combinations in Python

Ben Cook • Posted 2020-12-28 • Last updated 2021-10-15

There are lots of ways to generate combinations in Python. This post will show you all of them.

Upgrading pip on macOS

Ben Cook • Posted 2020-12-27 • Last updated 2021-10-15

A few ideas if you’re having trouble upgrading pip on macOS

How to Force pip to Reinstall a Package

Ben Cook • Posted 2020-12-26 • Last updated 2021-10-15

Once in a while, a Python package gets corrupted on your machine and you need to force pip to reinstall it. As of pip 10.0, you can run the following…

The Keras Custom Layer Explained

Ben Cook • Posted 2020-12-26 • Last updated 2021-03-24

Sometimes you need to define your own Keras custom layer. This tutorial explains how custom layers work for tensorflow>=1.7.0 (up to at least 2.4.0) which includes a fairly stable version of the Keras API.