Skip to content

aditu258/FitForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

FitForge: Advanced Regression Playground πŸ‹οΈβ€β™‚οΈπŸ“ˆ

πŸš€ Project Overview

FitForge is a hands-on notebook for exploring and visualizing advanced regression techniques on the diabetes dataset. It features custom implementations and comparisons of:

  • Linear Regression (with scikit-learn)
  • Ridge Regression (both closed-form and gradient descent, from scratch)
  • Lasso Regression (gradient descent, from scratch)
  • Polynomial Feature Expansion
  • ElasticNet Regression
  • Rich Visualizations for model comparison and regularization effects

πŸ› οΈ Workflow & Features

1. Data Exploration

  • Loads the diabetes dataset (10 features, 442 samples)
  • Splits data into training and test sets

2. Linear Regression

  • Trains a baseline model
  • Evaluates with RΒ² and RMSE

3. Ridge Regression

  • Closed-form solution: Custom implementation
  • Gradient Descent: Custom implementation
  • Polynomial Ridge: scikit-learn pipeline with degree-16 features
  • Visualization: Effect of different alpha values on fit

4. Lasso Regression

  • Gradient Descent: Custom implementation with L1 penalty
  • Polynomial Lasso: scikit-learn pipeline
  • Visualization: Sparsity and feature selection effects
  • Alpha Progression Table: Shows impact of regularization

5. ElasticNet Regression

  • Combines L1 and L2 penalties
  • Customizable alpha and l1_ratio
  • Evaluates on test set

πŸ“Š Results & Insights

  • Ridge & Lasso: Demonstrates how increasing regularization smooths predictions and shrinks coefficients
  • Lasso: Shows automatic feature selection (sparsity)
  • ElasticNet: Balances Ridge and Lasso effects
  • Visuals: Colorful plots for each method, with overlays for different alpha values

🏁 How to Use

  1. Open FitForge.ipynb in Jupyter or Colab
  2. Run all cells sequentially
  3. Explore the outputs, plots, and code for each regression method
  4. Adjust alpha, degree, and l1_ratio to see their effects

🌟 Notable Highlights

  • Custom Ridge and Lasso from scratch (not just scikit-learn!)
  • Interactive, step-by-step visualizations
  • Clear demonstration of regularization and feature selection
  • All code and results in a single, easy-to-follow notebook

πŸ“¬ Feedback

Feel free to open issues or suggest improvements!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors