Instructions to use ma-pmo/release-readiness-baseline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use ma-pmo/release-readiness-baseline with Scikit-learn:
# β οΈ Model filename not specified in config.json
- Notebooks
- Google Colab
- Kaggle
Release Readiness Baseline
At a glance
| What | calibrated model: P(more than half of a release's open issues slip) |
| Good for | a readiness signal for go/no-go reviews |
| Part of | How much of this release will ship? Β· 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-readiness-baseline", "classifier_v2_k14.skops")
clf = load(p, trusted=get_untrusted_types(file=p))
Models that read a Jira release as it stood 14 or 28 days before its release date and answer two questions: what share of its open issues will slip, and how likely is it that more than half slip. Trained on ma-pmo/jira-release-readiness; the release-level companion of ma-pmo/release-slip-baseline.
νκ΅μ΄ μμ½: λ¦΄λ¦¬μ€ D-14/D-28 μμ μ μνλ‘ "κ³Όλ°μ΄ λ°λ¦΄ νλ₯ "μ λ΄λ 보μ λ λΆλ₯κΈ°(v2 κΆμ₯)μ, μ§μ° λΉμ¨ μΆμ λ°©λ²μ μ 곡ν©λλ€. μ§μ° λΉμ¨μ νμ΅ κ΅¬κ° μμ κ²μ¦μμ νκ· λͺ¨λΈλ³΄λ€ μ΄μ μνλμ νκ· (
issue_risk_mean)μ΄ λ μ νν΄μ, v2μμλ κ·Έ κ°μ μ°λλ‘ κΆν©λλ€.
| file | what |
|---|---|
classifier_v2_k14.skops, classifier_v2_k28.skops |
v2 (recommended): P(mostly_slipped), gradient boosting + sigmoid calibration on v1 + v2 release features |
classifier_k14.skops, classifier_k28.skops |
v1 classifier, v1 features |
regressor_k14.skops, regressor_k28.skops |
v1 regressor of slip_rate (clip to [0, 1]) |
metrics_v2.json, metrics.json |
every estimator and reference on the test split; v2 β v1 paired differences; the slip-rate selection |
train_readiness_v2.py, train_readiness.py |
training and evaluation (with the modules they import) |
Slip rate in v2: use issue_risk_mean. It is a column of the dataset: the mean slip risk of
the release's scheduled issues from an as-of issue model (see the dataset card). A v2 regressor
was trained too, but on the latest 20% of training releases its MAE was worse (0.115 against
0.108 at k = 14, 0.114 against 0.113 at k = 28), so it is not shipped. On test the choice holds.
Use
import numpy as np
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-readiness-baseline", "classifier_v2_k14.skops")
print(get_untrusted_types(file=path)) # review before trusting
clf = load(path, trusted=get_untrusted_types(file=path))
test = load_dataset("ma-pmo/jira-release-readiness", "k14", split="test").to_pandas()
test["p_mostly_slipped"] = clf.predict_proba(test[clf.feature_names_in_])[:, 1]
test["expected_slip_rate"] = test.issue_risk_mean.clip(0, 1)
Results (test split, later releases than any training release)
| k | slip rate | MAE [95% CI] | Spearman | RΒ² |
|---|---|---|---|---|
| 14 | A4 flagged share | 0.180 [0.167, 0.194] | 0.41 | β0.11 |
| 14 | regressor v1 | 0.129 [0.121, 0.139] | 0.69 | 0.39 |
| 14 | issue_risk_mean (v2) |
0.107 [0.098, 0.116] | 0.76 | 0.53 |
| 28 | A4 flagged share | 0.186 [0.174, 0.198] | 0.37 | β0.06 |
| 28 | regressor v1 | 0.128 [0.119, 0.136] | 0.72 | 0.45 |
| 28 | issue_risk_mean (v2) |
0.114 [0.106, 0.122] | 0.77 | 0.56 |
| k | mostly made it | PR-AUC [95% CI] | ROC-AUC | Brier | ECE |
|---|---|---|---|---|---|
| 14 | base rate | 0.132 | 0.50 | 0.120 | 0.070 |
| 14 | classifier v1 | 0.516 [0.419, 0.618] | 0.89 | 0.084 | 0.048 |
| 14 | classifier v2 | 0.586 [0.485, 0.690] | 0.91 | 0.077 | 0.045 |
| 28 | base rate | 0.182 | 0.50 | 0.154 | 0.066 |
| 28 | classifier v1 | 0.627 [0.542, 0.715] | 0.88 | 0.100 | 0.036 |
| 28 | classifier v2 | 0.667 [0.587, 0.749] | 0.90 | 0.094 | 0.030 |
v2 against v1, paired bootstrap over the same test releases (95% intervals):
| k | slip-rate MAE (issue_risk_mean β regressor v1) |
made-it PR-AUC (classifier v2 β v1) |
|---|---|---|
| 14 | β0.023 [β0.030, β0.016] | +0.071 [+0.018, +0.120] |
| 28 | β0.014 [β0.021, β0.008] | +0.040 [+0.009, +0.067] |
All numbers, references included, are in metrics_v2.json.
Calibration of the v2 classifier
Above 0.5, where most releases fall (667 of 711), predicted probabilities match the observed share closely. Below 0.5 each bin holds 1 to 17 releases, so the curve moves a lot with a single release; read those bins as noise, not as a pattern.
Numbers behind the chart
| predicted bin | mean predicted | observed | test rows |
|---|---|---|---|
| 0.1β0.2 | 0.194 | 0.000 | 1 |
| 0.2β0.3 | 0.255 | 0.300 | 10 |
| 0.3β0.4 | 0.348 | 0.412 | 17 |
| 0.4β0.5 | 0.450 | 0.250 | 16 |
| 0.5β0.6 | 0.553 | 0.500 | 42 |
| 0.6β0.7 | 0.654 | 0.673 | 52 |
| 0.7β0.8 | 0.756 | 0.759 | 58 |
| 0.8β0.9 | 0.854 | 0.923 | 117 |
| 0.9β1.0 | 0.954 | 0.992 | 398 |
Training
Train on the earliest 70% of releases (up to 2017), test on the latest 30% (2017β2021). Classifiers: 200 iterations, learning rate 0.05, at least 20 samples per leaf, sigmoid calibration with 5 folds. v1 regressor: 300 iterations, same settings. scikit-learn 1.9, seed 0.
pip install "ma-pmo[benchmark]==0.9.0" pandas pyarrow skops
python train_readiness.py <jira-release-readiness folder> --out .
python train_readiness_v2.py <jira-release-readiness folder> --out .
Retraining with MA-PMO 0.9.0 reproduces both metrics files exactly (tested). Revision v1 of
this repository holds only the v1 models.
Limits
Trained on open-source Jira history (mostly Red Hat and Apache); check calibration on your own releases before using the probabilities. About 700 test releases, so intervals are wide. It predicts; it does not say what would prevent a slip.
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
CC BY 4.0, following the training data (Public Jira Dataset, MSR 2022). MA-PMO is AGPL-3.0 with a commercial license available (mjinttt@gmail.com).
- Downloads last month
- -
Dataset used to train ma-pmo/release-readiness-baseline
Collections including ma-pmo/release-readiness-baseline
Evaluation results
- PR-AUC made it (classifier v2) on Jira Release Readinesstest set self-reported0.586
- ROC-AUC (classifier v2) on Jira Release Readinesstest set self-reported0.914
- Brier (classifier v2) on Jira Release Readinesstest set self-reported0.077
- PR-AUC made it (classifier v2) on Jira Release Readinesstest set self-reported0.667
- ROC-AUC (classifier v2) on Jira Release Readinesstest set self-reported0.896
- Brier (classifier v2) on Jira Release Readinesstest set self-reported0.094
