Instructions to use vismayparekh/maintainerlens-issue-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use vismayparekh/maintainerlens-issue-classifier with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("vismayparekh/maintainerlens-issue-classifier", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
MaintainerLens issue classifier v2
This experimental classifier predicts Bug, Question, Feature request, or Other from a public GitHub issue's title and description. It uses word TF-IDF and logistic regression. Maintainers should review suggestions before acting. MaintainerLens continues to use its text rules for live classification.
Training
The model used 594 examples from VS Code, JupyterLab, Sphinx, and HTTPX with labels mapped from GitHub, plus 16 assistant-reviewed Poetry issues. The curated examples have weight 6 and the Bug class weight has a 1.35 multiplier. See the included training summary for counts and snapshot hashes. The published MaintainerLens benchmark is an evaluation dataset. These model files contain the fitted vocabulary and weights. Training issue bodies are omitted.
Evaluation
The 32-issue external holdout covers CPython, Flask, and Streamlit. Each category has eight examples. The manifest was fixed before scoring. The source GitHub labels provided expected categories, with documentation mapped to Other. Streamlit supplies all Question examples and CPython supplies all Feature request examples, so category scores may partly reflect repository conventions. The labels still need independent verification. Models and rules received the same frozen issue text without source labels.
| Method | Training examples | Macro F1 | Accuracy | Bug recall |
|---|---|---|---|---|
| Text rules | โ | 77.9% | 25 / 32 | 7 / 8 |
| Classifier v1 | 594 | 68.4% | 22 / 32 | 4 / 8 |
| Classifier v2 | 610 | 75.1% | 24 / 32 | 6 / 8 |
| Classifier v3 | 638 | 68.0% | 22 / 32 | 5 / 8 |
V2 had the highest macro F1 among the trained candidates on this holdout. On the earlier 24-issue bug/question holdout, v2 scored 56.8% macro F1 and v1 scored 68.6%. These small samples support reporting the individual benchmarks and keeping the rules in production. Category results do not establish duplicate detection, severity, or security-reporting performance.
Use
Install huggingface_hub, scikit-learn==1.8.0, and skops==0.13.0.
The preprocessing below matches training.
import re
from huggingface_hub import hf_hub_download
from skops.io import load
non_prose = re.compile(
r"```[\s\S]*?(?:```|\Z)|<!--[\s\S]*?-->|https?://\S+|[\w.+-]+@[\w.-]+\.\w+|(?<!\w)@[\w-]+"
)
title = "Downloaded PNG is missing the chart legend"
body = "The preview shows the legend. Exporting the chart produces a PNG without it."
text = f"{non_prose.sub(' ', title)}\n" * 3 + non_prose.sub(" ", body)[:3000]
path = hf_hub_download("vismayparekh/maintainerlens-issue-classifier", "issue-classifier.skops")
print(load(path).predict([text])[0])
- Downloads last month
- -