Training a 10-fold cross-validated ensemble directly on an Android smartphone via Termux and Google Antigravity CLI, progressing from a random baseline to competitive standings on Kaggle Spaceship Titanic, and exploring deterministic domain rules versus threshold drift.
💻 Open-Source Code: The Spaceship Titanic domain deduction pipelines, CatBoost models, and cross-validation harnesses are available on GitHub: myhlow/pocket-data-science (02-spaceship-titanic-domain-deductions).
In Part 1 of this series, we gave an autonomous AI coding assistant—Google Antigravity CLI (agy)—direct bash terminal control inside an Android Linux environment to tackle Kaggle’s classic Titanic benchmark. That experiment carried us to Rank #291 (Top 2.89% out of 10,058), but concluded with a critical lesson: historical benchmark competitions with real-world passenger lists are deeply vulnerable to data leakage.
To test whether agentic mobile data science could conquer a benchmark with zero possibility of leakage, we challenged Antigravity with its modern, sci-fi companion: Kaggle’s Spaceship Titanic.
- Deterministic Deduction Beats Blind Tuning: Imputing 271 planetary origins through surname purity yielded more performance than days of brute-force grid search.
- Anchor Thresholds to Empirical Priors: In symmetrical classification tasks, sweeping decision thresholds on validation sets often produces test-distribution drift.
- Mobile Autonomous AI is Ready for Real Work: Running Google Antigravity inside Termux PRoot proved capable of end-to-end competitive data science—from raw data ingest and feature engineering to 10-fold cross-validation and Kaggle submissions—directly on consumer phone hardware.
See this Termux + Antigravity CLI setup in action across competitive machine learning benchmarks on mobile hardware:
- Setup Guide: Running Google Antigravity CLI on Android with Termux PRoot.
- Part I: Training a 10-Fold Blended Ensemble on Titanic (Top 3%).
- Part II: Spaceship Titanic with Domain Deductions & CatBoost (Top 6%).
- Part III: House Prices Regression Baselines, Metric Alignment, and Ensembling (Top 19%).
- Part IV: Kaggle MNIST on Android: From Zero-Parameter Baselines to Subspace SVM (Top 47%).
Pocket Data Science Series · Tested on Android 14 / Termux · Debian ARM64 PRoot · Google Antigravity CLI
✦ All scripts (exp01_random_baseline.py through exp05_10fold_tuned_catboost.py) and submissions are archived locally in /root/spaceship-titanic/. ✦

Leave a Reply