Icon

Current Month Stockout Predictions

<p><strong>Predict Current-Month Stockouts and Compute the Historical Average</strong></p><p>This workflow generates the <strong>current month stockout prediction </strong>from historical data. It crates <strong>lagged values from previous months</strong>, and keeps only the current-month row for the prediction. It then applies the saved <strong>regression model</strong> to estimate stockouts, calculates the <strong>mean historical stockouts</strong> from the original data, and places both results side by side. Finally, it rounds the values, keeps the relevant output columns, and returns a simple comparison of <strong>predicted stockouts for the current month</strong> versus the <strong>historical average</strong>.</p>

Predict Current-Month Stockouts and Compute the Historical Average

This workflow generates the current month stockout prediction from historical data. It crates lagged values from previous months, and keeps only the current-month row for the prediction. It then applies the saved regression model to estimate stockouts, calculates the mean historical stockouts from the original data, and places both results side by side. Finally, it rounds the values, keeps the relevant output columns, and returns a simple comparison of predicted stockouts for the current month versus the historical average.

Predict Current-Month Stockouts and Compute the Historical Average


This workflow generates the current month stockout prediction from historical data. It crates lagged values from previous months, and keeps only the current-month row for the prediction. It then applies the saved regression model to estimate stockouts, calculates the mean historical stockouts from the original data, and places both results side by side. Finally, it rounds the values, keeps the relevant output columns, and returns a simple comparison of predicted stockouts for the current month versus the historical average.

Input data

Incoming from caller workflow

Output data

Outgoing from callee workflow

Predict Stockouts

  • Lag previous months

  • Apply trained regression model

  • Compute mean stockouts on historical data

Predictor model
Model Reader
Input data--> historical stockouts in warehouse location
Workflow Input
Lag previousmonths
Lag Column
Current Month prediction
Regression Predictor
Output data--> Stockout prediction (current month) / Mean stockouts
Workflow Output
Column Auto Type Cast
Keep only current month
Row Filter
Current month
Table Creator
Concatenate
Selected datastatistics --> mean of stockouts
GroupBy
Column Appender
Number Rounder
Column Filter

Nodes

Extensions

Links