CoolFace
Apppublic

basaktamer/Abalone_Age_Prediction

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

๐ŸŒ Abalone Age Prediction (Regression)

This repository contains a full-stack data science solution for predicting the age of abalones using physical measurements. Developed for the Kaggle Playground Series (S4E4), the project transitions from raw data exploration to a deployed web application.

๐Ÿš€ Live Demo

You can interact with the model here: [Insert your Hugging Face Space Link Here]

๐Ÿ“Š Project Highlights

  • โ€”Model: Random Forest Regressor
  • โ€”Metric: Root Mean Squared Logarithmic Error (RMSLE)
  • โ€”Local Validation Score: 0.15303
  • โ€”Python Version: 3.10

๐Ÿง  Key Insights & Feature Engineering

  • โ€”Sex Mapping: Categorical variables were mapped manually ({'I': 0, 'M': 1, 'F': 2}) to preserve the biological distinction of Infants.
  • โ€”"Water Weight" Discovery: A custom feature was engineered to calculate the difference between the whole weight and the sum of shucked, viscera, and shell weights.
  • โ€”Noise Reduction: "Impossible" negative water weights (common in synthetic datasets) were clipped to zero, increasing feature correlation with the target from 0.428 to 0.463.
  • โ€”Target Optimization: Used a log1p transformation on the target variable (Rings) to align the training process with the RMSLE evaluation metric.

๐Ÿ›  Tech Stack

  • โ€”Data: Pandas, NumPy
  • โ€”ML: Scikit-Learn, Joblib
  • โ€”App: Streamlit
  • โ€”Environment: Python 3.10 (VS Code Venv)

๐Ÿ“ Repository Structure

  • โ€”app.py: The Streamlit web application.
  • โ€”abalone_model.joblib: The serialized Random Forest model.
  • โ€”requirements.txt: Python dependencies.
  • โ€”README.md: Project documentation and Hugging Face metadata.