/lux_ai_stats

Primary LanguagePythonThe UnlicenseUnlicense

Lux AI Submission Statistics

Source code for the web app that visualizes some Lux AI submissions played games statistics: score growth and change, win rate change and win/loss matches count.

Stack: Selenium & Beautiful Soup for scraping data from the Kaggle submission's page and Streamlit & Plotly for the interface and making plots.

Installation

Docker (recommended)

  1. Clone this repo
git clone https://github.com/nikiandr/lux_ai_stats.git && cd lux_ai_stats
  1. Build an image
docker build -t lux-ai-stats .
  1. Run a container
docker run -d -p 8501:8501 --name lux-ai-stats lux-ai-stats
  1. Enjoy your website at the http://localhost:8501

Without Docker

This application was developed with the python 3.8. If you want to use another version - you may need to adjust the dependencies versions.

Also guide is provided for unix-like systems. If you are a Windows user, the steps might be slightly different

  1. Clone this repo
git clone https://github.com/nikiandr/lux_ai_stats.git && cd lux_ai_stats
  1. Install dependencies
python -m venv env
source env/bin/activate
pip install -r requirements.txt
  1. Install chromedriver.

On Debian-based distro use

apt-get update -y && apt-get install -y chromium-driver

Or just download binary and add it to the PATH

PATH=$PATH:/path/to/the/chromedriver
  1. Run an application
streamlit run main.py
  1. Enjoy your website at the http://localhost:8501