Using R and Keras to generate banned license plates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
banned_plates.png Added image Feb 9, 2018

Banned license plates generator

Offensive license plates

This R code uses Keras to train a neural network on license plates that were banned by the Arizona Department of Transportation. It was my attempt at using neural networks to make something funny like the AI trained on band names, video game titles, and pokemon.

The code is based heavily on the RStudio text generation example.

The license plate corpus comes from a google search and is included in the repository, however I have a Public Records Request out for more recent data from the state.

The code is broken into three files:

  1. load_data_functions.R - this file has the functions that handle loading and formatting the data
  2. model_functions.R - this file has the functions that make the model and generate the license plates
  3. run_model.R - this script actually runs all the functions and generates a data frame of license plates

To run the code, first make sure your have keras and tensorflow installed on your computer. You can use the Rstudio guide to do this.