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:
- load_data_functions.R - this file has the functions that handle loading and formatting the data
- model_functions.R - this file has the functions that make the model and generate the license plates
- 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.