This project uses iOS Playgrounds to display a working neural network. No external libraries are used. The matrix and neural network code is written in pure Swift. This playground has only been tested on an 12.9‑inch iPad Pro.

Device Installation

This is how I do it, but I’m sure there is a better way:

  1. Install the Swift Playgrounds app on your device.
  2. Download or clone this repository.
  3. AirDrop the Neural Network.playground folder from your Mac to your device.
  4. Open the received playground in the Playground application.

Screenshots

Here is the page that predicts a drawn digit:

And a neural network being trained to fit some points: