Predicting Pokemon Battles with Streamlit and DataRobot
DataRobot is good at Machine Learning. What it’s not super good at is allowing users to build customizable webapps around their models. Meanwhile, my team at work didn’t know too much about easy ways to code up small applications so they were a little bit stuck using our in house app builder. Enter Streamlit and the example app I whipped up to show why Pythonic webapps and machine learning go hand in hand. And yes, it’s my second Pokemon app. Sue me if you don’t like it..
Behold the Pokemon Battle Simulator (it doesn’t actually simulate battles. It just queries a model to predict the end result based on Pokemon types and base stats)! Trained using DataRobot, users can select a Pokemon or make one up and have it battle another Pokemon.
While simple, this application was great for my demo because it showed a lot of things DataRobot cannot do in house.
- Score user selected items determined by a dropdown.
- Utilize custom images (i.e. the winner of the Pokemon Battle).
- Better annotate what’s happening.
There is obviously a ton more that one can do by leveraging Streamlit, but the app achieved its goal of demonstrating flexibility and ease of construction.
Play with the app below or view it here (it’s better). Don’t forget to submit your favorite Pokemon!