Malcolm Low | Practical AI, Computing & Quantum Research

Singapore-based practical guides, tutorials and experiments in AI, computing, modelling, simulation, optimisation and quantum computing, with research notes and hands-on workflows.

, , , ,

Pocket Data Science: Full Mobile ML & Kaggle Roadmap

Yes, run Kaggle ML on phones. Uncalibrated mobile models hit OOM and rank poorly without proper baselines. Follow our complete 6-track edge roadmap →

·

Written by

POCKET DATA SCIENCE SERIES 2026
The complete mobile machine learning roadmap: from Termux PRoot bootstrapping to Global Top 100 on Kaggle.

This is the master index and curriculum for the Pocket Data Science series: a sequence of hands-on guides and empirical benchmarks proving that competitive machine learning, feature engineering, and statistical modeling can be executed entirely on an Android mobile device. Using Android Termux, isolated PRoot Linux containers, and the Google Antigravity CLI (agy), team Pocket Data Lab designs, tests, and deploys high-performing models directly from handheld edge hardware. Each article stands on its own, but together they form a systematic arc—from mathematical foundations and mobile environment bootstrapping, to tabular classification, target geometry, mobile vision and NLP, time-series quad-ensembles, and LLM human preference alignment. The order below is a learning path from first principles to advanced competition rank, rather than the chronological order of publication.

New to edge data science? Read top to bottom starting from Foundational Pre-reading. Already comfortable with loss math and mobile PRoot setup? Jump straight to tabular classification in Track 2 or the quad-ensembles in Track 5. Explore all competition code on the official Pocket Data Lab Kaggle Profile.

Foundational Pre-reading: The Math Behind Loss & Evaluation Metrics
0
Multi-Class Log Loss Explained: Math, MLE & Python Code
The theoretical foundation of probability calibration: deriving cross-entropy from Maximum Likelihood Estimation, why confident false predictions cause catastrophic infinite penalties, probability calibration, and numerical clipping bounds (eps = 1e-15).
MATH
Classification Diagnostics: Confusion Matrix, Precision, Recall & F1-Score
Evaluation metric taxonomy: understanding type I and type II error trade-offs under class imbalance, macro vs. micro vs. weighted F1 formulations, and probability threshold tuning on mobile edge models.
1  ·  Mobile Edge Infrastructure & Tooling Setup
1
Run Google Antigravity CLI on Termux: Android PRoot Guide
Step-by-step installation of Ubuntu/Debian inside Termux PRoot on Android ARM64: building native wheels for numpy, scipy, and pandas, configuring the Google Antigravity autonomous coding agent, setting up Git submodules, and establishing headless Kaggle API token authentication.
TOOL
Connect Codex CLI to WordPress from Android Termux & Publishing with WordPress MCP Connector
Edge documentation pipelines: automating dispatch and research reporting directly from mobile terminal shells without opening browser administration panels.
2  ·  Tabular Classification & Domain Deductions
2
Part I — Titanic 10-Fold Ensemble: Training on Android (Top 3% Global)
Foundational tabular classification: title parsing, demographic imputations, out-of-fold blended ensembling (Random Forest, LightGBM, CatBoost), and automated Kaggle dispatch securing an official Top 3% global finish (Score: 0.79665).
3
Part II — Spaceship Titanic: Domain Deductions & Native CatBoost (Top 6% Global)
Exploiting problem-domain physics: CryoSleep spending invariants, passenger group surname matching, and native CatBoost on ARM64 achieving an official Top 6% global standing (Score: 0.80687).
3  ·  Regression Geometry & Target Transformations
4
Part III — House Prices: Regression Baselines & Regularized Ensembling
Continuous target modeling: logarithmic log1p target stabilization, cross-validated Ridge, Lasso, and ElasticNet regularisation, and stacked gradient boosted ensembles optimized for mobile RAM ceilings.
4  ·  Mobile Edge Vision & NLP on RAM Budgets
5
Part IV — Kaggle MNIST Subspace SVM: 10-Class Digit Recognition
Computer vision under tight memory constraints: PCA orthogonal subspace projection, Support Vector Machines (SVM) with radial basis kernels, and training 42,000 samples within a 2 GB Android RAM budget.
6
Part V — NLP Disaster Tweets: Text Vectorization & Baselines
Natural language processing on edge devices: n-gram TF-IDF sparse matrices, text tokenization, and regularized logistic baselines proving competitive against heavy transformer architectures.
5  ·  Time Series Forecasting & Quad-Ensembles
7
Part VI — Store Sales Non-ML Baselines: Hierarchical Moving Averages (Top 33.1%)
Deterministic time-series forecasting: building hierarchical rolling averages and holiday heuristics without machine learning weights, outperforming 66% of competitors (RMSLE: 0.44975).
8
Part VII — Store Sales GBDT & Residual Modeling: Learning Deviations (Top 21.0%)
Residual machine learning: pairing baseline moving averages with LightGBM models trained purely on trend residuals, climbing to Top 21.0% globally (RMSLE: 0.41843).
9
Part VIII — The Quad-Ensemble: Store Sales Global Top 100 on Android
The capstone forecasting architecture: combining moving averages, calendar regression, and GBDT residual models into a convex 4-way blend, clinching Global Rank #99 on Kaggle (RMSLE: 0.40455).
6  ·  Generative AI Alignment & LMSYS Human Preference
10
Part IX — LMSYS Chatbot Arena: LLM Preference Baselines on Android
Predicting human preference across pairs of generative LLM outputs: exploiting length bias heuristics, probability distribution tuning for multi-class log loss, and placing Rank #222 out of 291 teams with zero neural weights.
Master Benchmark & Leaderboard Performance Summary

All models, feature engineering pipelines, and cross-validation folds below were trained and dispatched entirely from an Android device via Termux PRoot Linux:

Competition & Module Methodology & Stack Kaggle Standing
Titanic (Part I) 10-Fold GBDT Blended Ensemble Top 3% Global (0.79665)
Spaceship Titanic (Part II) CryoSleep Invariants & Native CatBoost Top 6% Global (0.80687)
House Prices (Part III) Log-Transformed Regularized Regression Benchmarked (RMSLE)
MNIST Digits (Part IV) PCA Subspace Projection + Support Vector Machine RAM Bound (2 GB Budget)
Disaster Tweets (Part V) Sparse TF-IDF N-grams + Linear Models Edge NLP Baseline
Store Sales (Part VI) Hierarchical Non-ML Moving Averages Top 33.1% Global (0.44975)
Store Sales (Part VII) Deterministic Trend + LightGBM Residuals Top 21.0% Global (0.41843)
Store Sales (Part VIII) Convex 4-Way Quad-Ensemble Blend Global Top 100 · Rank #99 (0.40455)
LMSYS Preference (Part IX) Calibrated Response Length Difference Heuristic Rank #222 of 291 (Log Loss 1.0772)

Pocket Data Science Series 2026  ·  Engineered on Android Termux & PRoot Linux

✦ Benchmarked and verified by team Pocket Data Lab on Kaggle ✦

Explore the Pocket Data Science Series
← Multi-Class Log Loss Theory & Math (Module 0)
View the complete Pocket Data Science Roadmap
→ Start with Mobile Edge Infrastructure Setup (Module 1)
• Browse all articles in the Machine Learning Hub →

Comments

One response to “Pocket Data Science: Full Mobile ML & Kaggle Roadmap”

  1. Multi-Class Log Loss Explained: Math, MLE & Python Code – Malcolm Low | Practical AI, Computing & Quantum Research Avatar

    […] Master Curriculum: Pocket Data Science: Complete Learning Path & 6-Track Roadmap. […]

    Like

Leave a Reply