Release Slip Baseline

At a glance

What calibrated model: P(an open issue misses its release); ROC-AUC 0.87
Good for a risk score per issue, a baseline to beat
Part of Will this issue make the release? Β· all MA-PMO datasets and models
ν•œκ΅­μ–΄ μ΄μŠˆκ°€ 이번 λ²„μ „μ—μ„œ 밀릴 ν™•λ₯ 
from huggingface_hub import hf_hub_download
from skops.io import load, get_untrusted_types
p = hf_hub_download("ma-pmo/release-slip-baseline", "model_v2_k14.skops")
model = load(p, trusted=get_untrusted_types(file=p))

Calibrated gradient-boosted tree models that estimate the probability that an open Jira issue misses the release it is scheduled for, from what was known 14 or 28 days before the release. They are the reference models for ma-pmo/jira-release-slip and the learned baseline next to the rule signals of MA-PMO's risk agent A4.

ν•œκ΅­μ–΄ μš”μ•½: 릴리슀 14일/28일 μ „ μ‹œμ μ˜ 이슈 μƒνƒœμ™€ 이λ ₯(μ§„ν–‰ μ—¬λΆ€, λ§ˆμ§€λ§‰ λ³€κ²½ 이후 일수, 이 λ¦΄λ¦¬μŠ€μ— νŽΈμ„±λœ κΈ°κ°„, 이전 μ—°κΈ° 횟수, ν”„λ‘œμ νŠΈμ˜ κ³Όκ±° μ§€μ—°λ₯  λ“±)으둜 "이번 λ¦΄λ¦¬μŠ€μ— λͺ» λ“€μ–΄κ°ˆ ν™•λ₯ "을 λ‚΄λŠ” scikit-learn λͺ¨λΈμž…λ‹ˆλ‹€. v2(ν”Όμ²˜ 29개)λ₯Ό μ“°μ‹œκ³ , v1(18개)은 λΉ„κ΅μš©μœΌλ‘œ 남겨 λ‘μ—ˆμŠ΅λ‹ˆλ‹€. ν™•λ₯ μ€ isotonic λ³΄μ •λ˜μ–΄ κ·ΈλŒ€λ‘œ 리슀크 점수둜 μ“Έ 수 μžˆμŠ΅λ‹ˆλ‹€.

file model
model_v2_k14.skops, model_v2_k28.skops v2 (recommended): v1 + v2 features, tuned on a time split inside train
model_k14.skops, model_k28.skops v1: the 18 v1 features
metrics_v2.json v2 and v1 on the test split, paired differences, per-collection table, tuning trials
metrics_transfer.json leave-one-organisation-out results (see below)
metrics.json v1 and the reference scorers
train_model_v2.py, train_model.py, eval_transfer.py training and evaluation (with the modules they import)

Use

import pandas as pd
from datasets import load_dataset
from huggingface_hub import hf_hub_download
from skops.io import get_untrusted_types, load

path = hf_hub_download("ma-pmo/release-slip-baseline", "model_v2_k14.skops")
print(get_untrusted_types(file=path))   # review: two scikit-learn classes are expected
model = load(path, trusted=get_untrusted_types(file=path))

test = load_dataset("ma-pmo/jira-release-slip", "k14", split="test").to_pandas()
features = list(model.feature_names_in_)          # 29 columns of the dataset, in this order
test["p_slip"] = model.predict_proba(test[features])[:, 1]

Column meanings are in the dataset card; MA-PMO computes the v1 ones from a tracker's history with ma_pmo.benchmark.features.release_features, and features_v2.py (shipped here) the rest.

Training

  • HistGradientBoostingClassifier wrapped in CalibratedClassifierCV (isotonic, 3 folds), scikit-learn 1.9, seed 0. Train: the earliest 70% of releases (up to 2017). Test: the latest 30% (2017–2021), so the test is a forecast of later releases, not a random split.
  • v2 hyper-parameters were chosen by PR-AUC on the latest 20% of training releases (24 settings, all in metrics_v2.json): learning rate 0.03, 15 leaves, L2 1.0, at least 200 (k = 14) or 50 (k = 28) samples per leaf, 400 iterations. The test split was not used.
  • v1: 300 iterations, learning rate 0.05, at least 50 samples per leaf.

Results (test split)

PR-AUC with a 95% bootstrap interval over releases. "informative" = releases where 10–90% of issues slipped; "started" = issues already in progress at T; "without carried-over" leaves out issues that also appear in a training release.

k scorer PR-AUC [95% CI] ROC-AUC Brier ECE informative started without carried-over
14 all slip 0.829 [0.811, 0.847] 0.500 0.171 0.171 0.713 0.620 0.818
14 A4 calibrated 0.883 [0.870, 0.896] 0.675 0.133 0.070 0.775 0.621 0.874
14 v1 0.964 [0.956, 0.970] 0.857 0.103 0.038 0.889 0.869 0.960
14 v2 0.968 [0.961, 0.973] 0.868 0.099 0.021 0.893 0.873 0.964
28 all slip 0.782 [0.761, 0.800] 0.500 0.218 0.218 0.702 0.563 0.767
28 A4 calibrated 0.833 [0.814, 0.847] 0.639 0.161 0.060 0.752 0.562 0.821
28 v1 0.936 [0.908, 0.950] 0.825 0.129 0.055 0.853 0.851 0.935
28 v2 0.943 [0.921, 0.956] 0.838 0.123 0.020 0.868 0.852 0.942

v2 against v1, paired bootstrap over the same test releases (95% intervals):

k PR-AUC Brier PR-AUC without carried-over
14 +0.004 [+0.002, +0.006] βˆ’0.004 [βˆ’0.006, βˆ’0.002] +0.004 [+0.002, +0.006]
28 +0.008 [+0.004, +0.014] βˆ’0.007 [βˆ’0.008, βˆ’0.005] +0.007 [+0.003, +0.011]

The ranking gain is small but clearly above zero; the larger change is calibration (ECE from 0.038 to 0.021 and from 0.055 to 0.020). Per collection, v2 is ahead on the four large ones (Red Hat, Apache, Qt, MongoDB); the small ones (under 1,000 rows or 20 releases) go both ways and are flagged in metrics_v2.json.

Calibration and what the model relies on

Reliability diagram of the v2 model on the k = 14 test split: the curve follows the diagonal from 0.2 upwards and sits slightly above it beyond 0.7

Between 0.2 and 0.7 a predicted probability is close to the share that actually slipped. Beyond 0.7 the observed share runs 0.02 to 0.03 higher: the test period (2017–2021) slips more than the training period (82.9% against 78.4%). Below 0.2 the model underestimates slips, but only 163 of 41,648 test rows fall there.

Numbers behind the chart
predicted bin mean predicted observed test rows
0.0–0.1 0.076 0.250 4
0.1–0.2 0.172 0.264 159
0.2–0.3 0.261 0.250 1,186
0.3–0.4 0.348 0.366 1,974
0.4–0.5 0.446 0.481 1,670
0.5–0.6 0.553 0.536 1,667
0.6–0.7 0.656 0.674 2,512
0.7–0.8 0.755 0.784 4,685
0.8–0.9 0.851 0.879 7,019
0.9–1.0 0.958 0.974 20,772

Permutation importance of the v2 model, top ten features: since_status_days 0.065, project_prior_slip_rate 0.026, reschedules 0.020, started 0.011

Shuffling one feature at a time on 8,000 test rows (k = 14): the time since the last status change matters most, then the project's track record and earlier reschedules. An issue untouched for a long time, in a project that often slips, or already moved out of an earlier release, is likely to be moved again. All are computed only from changes up to T.

Does it work on an organisation it never saw?

ROC-AUC per organisation for the published model, a model that never saw the organisation, and the same without project history, at 14 and 28 days before release

Each organisation (Jira instance) in the test split is held out in turn: a model with the same features and settings is trained on the other organisations only, then scored on the held-out one's later releases, the same rows the published model is scored on. A second score also removes the project's track record, as for a tracker with no earlier releases.

k test rows ROC-AUC trained with it never saw it never saw it, no history PR-AUC change, never saw it PR-AUC change, no history
14 all test rows 41,648 0.868 0.857 0.853 -0.004 [-0.007, -0.003] -0.007 [-0.010, -0.004]
14 RedHat 22,088 0.879 0.867 0.868 -0.003 [-0.005, -0.002] -0.003 [-0.005, -0.002]
14 Apache 13,883 0.867 0.862 0.857 -0.002 [-0.004, +0.000] -0.004 [-0.009, +0.000]
14 Qt 2,420 0.829 0.829 0.809 -0.001 [-0.003, +0.002] -0.018 [-0.038, -0.000]
14 MongoDB 1,199 0.707 0.705 0.712 -0.000 [-0.008, +0.008] +0.005 [-0.009, +0.019]
28 all test rows 46,216 0.838 0.825 0.806 -0.011 [-0.028, -0.002] -0.023 [-0.043, -0.009]
28 Apache 23,053 0.819 0.807 0.792 -0.015 [-0.037, +0.000] -0.026 [-0.052, -0.004]
28 RedHat 16,330 0.852 0.848 0.845 -0.001 [-0.003, +0.000] -0.003 [-0.006, +0.000]
28 Qt 2,376 0.819 0.812 0.795 -0.004 [-0.008, -0.002] -0.023 [-0.045, -0.008]
28 MongoDB 1,687 0.741 0.731 0.712 -0.007 [-0.014, -0.001] -0.022 [-0.046, -0.004]

Changes are paired bootstrap 95% intervals over the organisation's test releases.

  • Meeting a new organisation costs little. Over all test rows ROC-AUC goes from 0.868 to 0.857 at k = 14 and from 0.838 to 0.825 at k = 28.
  • Having no history costs more, mostly further from the release: 0.806 at k = 28, and calibration worsens (Brier +0.015). Recalibrate on your own first releases if you can.
  • IntelDAOS (both offsets) and Hyperledger (k = 28) have no training releases at all, so the published model already met them as new organisations; their numbers, and those of the other small organisations, are in metrics_transfer.json (train_rows_of_it, small).
  • Open-source organisations only; a corporate tracker may differ more than they differ from each other.

Reproduce: python eval_transfer.py <jira-release-slip folder> --out . (models are rebuilt, not shipped).

Reproduce

pip install "ma-pmo[benchmark]==0.9.0" pandas pyarrow skops
python train_model.py <jira-release-slip folder> --out .
python train_model_v2.py <jira-release-slip folder> --out .

Retraining with MA-PMO 0.9.0 reproduces metrics.json and metrics_v2.json exactly (tested). Revision v1 of this repository holds only the v1 models.

Limits

  • Trained on open-source Jira projects (mostly Red Hat and Apache). Calibration on another organisation's tracker is not guaranteed; check it on your own history first.
  • It predicts; it does not explain why or say what would prevent a slip.
  • See the dataset card for the label rules and the release-date caveat.

Provenance, license and privacy

Source: the Public Jira Dataset (Montgomery, LΓΌders, Maalej; Zenodo v7, 10.5281/zenodo.15719919), licensed CC BY 4.0. This repository is an adapted version: what was kept, dropped and computed is in DATA_PROVENANCE.md. The Python scripts in this repository are part of MA-PMO and licensed AGPL-3.0-or-later, not CC BY 4.0.

People. The models are numeric tree ensembles; they hold no rows and no ids. Their training data holds no user ids. Details in PRIVACY.md.

Jira is a trademark of Atlassian; the instance names belong to their owners and are used only to say where the data comes from.

License and citation

CC BY 4.0, following the training data (Public Jira Dataset, Montgomery, LΓΌders and Maalej, MSR 2022). MA-PMO itself is AGPL-3.0 with a commercial license available (mjinttt@gmail.com). Citation entries are in the dataset card.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train ma-pmo/release-slip-baseline

Collections including ma-pmo/release-slip-baseline

Evaluation results