Ensemble in a neighborhood
Combine three models into a risk map and watch the PAI change with weights, POI Boost and the cutoff rule.
What this lab shows
A made-up neighborhood split into small squares, with invented records and three models that imitate the behavior of the Random Forest, the LSTM and the Transformer. You build the Hybrid Ensemble combination step by step, as in the book, and compare the risk zone with those of the models alone and of simple rules with no learning.
Neighborhood, records and models are made up. The combination and metric formulas are the ones in the book.
How to use it
- Tap a square and follow the calculation: weighted average, maximum term, POI Boost and filter.
- Change the weights and compare the Ensemble PAI with that of the LSTM, the Transformer and the 24-week average.
- In the quiet area, use the old rule with a 20% zone and watch ties blow past the zone.
Illustrative dataNeighborhood, records and points of interest are made up. The three models are simple imitations that reproduce the typical behavior described in the study; they are not the trained models of the dissertation nor SSP-SP data. The combination and the metrics follow the formulas in the book.
Ensemble with the study settings, central area, month A, 10% zone. Squares with a thick border form the risk zone.
| Model | PAI | Crimes in the zone |
|---|---|---|
| Ensemble (your settings) | 2.58 | 26% |
| LSTM | 2.06 | 21% |
| Transformer | 2.71 | 28% |
| Random Forest | 2.39 | 24% |
| 24-week average (no learning) | 2.71 | 28% |
| 4-week sum (no learning) | 1.81 | 18% |
The lab could not load. The summary above still applies.
Books that use this lab
No published book uses this lab yet.