
NYC Taxi Fare Prediction
Snowflake SQL and tuned Random Forest on 500K trips, with a recorded test R² of 0.9848.
Overview
A reproducible machine-learning system for estimating New York City taxi fares from trip characteristics. The workflow uses Snowflake SQL for data preparation and a tuned Random Forest regressor for prediction, with training, evaluation, and model artifacts organized into a reusable pipeline. MLflow supports experiment tracking, while FastAPI exposes inference endpoints and Docker provides an application packaging path. Moving beyond a standalone notebook, this project demonstrates how data engineering, predictive modeling, evaluation, and deployment-oriented tooling fit together in an end-to-end ML workflow.
Technical details
The recorded experiment queried a random 500,000-row sample through Snowflake, reserving 1% (5,000 trips) for testing. The selected RandomForestRegressor has 82 trees, maximum depth 16, minimum leaf size 24, and max_features=0.5. Its saved reference metrics are MAE 0.6891, RMSE 2.1460, and R² 0.9848 on that recorded test sample. The accompanying Python project turns the notebook into reusable data ingestion, preprocessing, MLflow-tracked training, model serialization, tests, and FastAPI inference.

