Section 1: Framing Machine Learning Problems from Business Needs
- How forecasting, segmentation and classification answer different business questions
- Set the goal, the metric and the decision the model's output will drive
- The data you need and the data problems organisations commonly face
- Lab: set up Google Colab and load sample sales data with pandas
Section 2: Lab: Exploring Time Series Data
- Resample data to daily, weekly and monthly levels
- Separate trend and seasonality with charts and decomposition
- The effect of Thai public holidays, festivals and promotions on sales
- Handle missing dates, outliers and slow-moving products
Section 3: Baselines and Forecast Evaluation
- Naive, seasonal naive and moving average baselines
- Choosing a metric: MAE, RMSE, MAPE and WAPE, and their limits
- Rolling-origin backtesting instead of random splits
- Lab: set a baseline that later models must beat
Section 4: Lab: Sales Forecasting with Prophet
- How Prophet is built: trend, seasonality and holidays
- Add Thai holidays and promotions as extra regressors
- Read the uncertainty interval of the forecast
- Lab: forecast 12 weeks of sales and compare with the baseline
Section 5: Lab: Forecasting with Gradient Boosting
- Build features from lags, rolling averages and the calendar
- Train LightGBM or HistGradientBoosting from scikit-learn
- Time series cross-validation to avoid peeking into the future
- Lab: compare accuracy with Prophet and the baseline
Section 6: Forecasting Many Products and Using Forecasts for Planning
- Forecast many branches and products with a single model
- Roll results up to category and company level so the numbers agree
- Turn forecasts and uncertainty ranges into safety stock
- Lab: summarise next month's ordering plan from the forecast