Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Forecasting Product Demand for Inventory Planning

What the Model Does

This project predicts the number of units sold (product demand) using retail features such as product category, region, price, discount, seasonality, and holiday or promotion status. The model supports inventory planning and demand forecasting.

Model Used

  • Random Forest Regressor (final selected model)
  • Compared with:
    • Linear Regression
    • Decision Tree Regressor
  • Model selection is based on MAE and RMSE.

How the Model Works

The Random Forest model learns patterns from historical sales data and predicts future demand by combining results from multiple decision trees.

Output

  • Input: Category, Region, Price, Discount, Holiday/Promotion, Seasonality
  • Output: Predicted Units Sold

Files

  • model.py – trains models and saves the best model
  • best_model.pkl – saved trained model
  • app.py – Streamlit app for local predictions

Run

pip install -r requirements.txt
python model.py
streamlit run app.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages