Add interactive 3D PCA views to dashboard Park Mind tab

Two spin/zoom Plotly scatter_3d sub-tabs in the PCA tab:
- Rides in PC1xPC2xPC3 (loadings), color by category / GPS
  k-means area / PC1 busyness. Adds GPS k-means areas to
  compute_pca(), auto-labeling the lowest-PC2 cluster Kiddieland.
- Moments in PC1xPC2xPC3 (per-snapshot scores), color by hour /
  day-of-week / weekend / month, sampled to 15k points if larger.

Pin numpy in requirements (now imported directly).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wes
2026-05-27 18:53:55 -04:00
co-authored by Claude Opus 4.7
parent ade774f5aa
commit 53109bc7fe
2 changed files with 112 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@ requests
psycopg2-binary
streamlit
pandas
numpy
plotly
python-dotenv
scikit-learn