Machine Learning for Predictive Maps in Python and Leaflet
Introduction
Project Files
Python Installation
Creating a Python Virtual Environment
Installing Django
Installing Visual Studio Code IDE
Installing PostgreSQL Database Server Part 1
Installing PostgreSQL Database Server Part 2
Adding the settings.py Code
Creating a Django Model
Adding the admin.py Code
Creating Template Files
Creating Django Views
Creating URL Patterns for the REST API
Adding the index.html code
Adding the layout.html code
Creating our First Map
Adding Markers
Installing Jupyter Notebook
Data Pre-processing
Model Selection
Model Evaluation and Building a Prediction Dataset
Creating a Django Model
Embedding the Machine Learning Pipeline in the Application
Creating a URL Endpoint for our Prediction Dataset
Creating Multiple Basemaps
Creating the Marker Layer Group
Creating the Point Layer Group
Creating the Predicted Point Layer Group
Creating the Predicted High Risk Point Layer Group
Creating the Legend
Creating the Prediction Score Legend
Source Code and Notebook