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
Publish evaluated MaintainerLens issue classifier v2
Browse files- .gitattributes +1 -0
- LICENSE +21 -0
- README.md +75 -0
- classifier-external-32.csv +33 -0
- issue-classifier.skops +3 -0
- training-summary.json +22 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
issue-classifier.skops filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 vismayparekh
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: sklearn
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- github
|
| 9 |
+
- issue-triage
|
| 10 |
+
datasets:
|
| 11 |
+
- vismayparekh/maintainerlens-benchmark
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# MaintainerLens issue classifier v2
|
| 15 |
+
|
| 16 |
+
This experimental classifier predicts **Bug**, **Question**, **Feature request**,
|
| 17 |
+
or **Other** from a public GitHub issue's title and description. It uses word
|
| 18 |
+
TF-IDF and logistic regression. Maintainers should review suggestions before
|
| 19 |
+
acting. MaintainerLens continues to use its text rules for live classification.
|
| 20 |
+
|
| 21 |
+
## Training
|
| 22 |
+
|
| 23 |
+
The model used 594 examples from VS Code, JupyterLab, Sphinx, and HTTPX with
|
| 24 |
+
labels mapped from GitHub, plus 16 assistant-reviewed Poetry issues. The curated
|
| 25 |
+
examples have weight 6 and the Bug class weight has a 1.35 multiplier.
|
| 26 |
+
See the included training summary for counts and snapshot hashes. The
|
| 27 |
+
published MaintainerLens benchmark is an evaluation dataset. These model files
|
| 28 |
+
contain the fitted vocabulary and weights. Training issue bodies are omitted.
|
| 29 |
+
|
| 30 |
+
## Evaluation
|
| 31 |
+
|
| 32 |
+
The 32-issue external holdout covers CPython, Flask, and Streamlit. Each
|
| 33 |
+
category has eight examples. The manifest was fixed before scoring. The source
|
| 34 |
+
GitHub labels provided expected categories, with documentation mapped to
|
| 35 |
+
Other. Streamlit supplies all Question examples and CPython supplies all
|
| 36 |
+
Feature request examples, so category scores may partly reflect repository
|
| 37 |
+
conventions. The labels still need independent verification. Models and rules
|
| 38 |
+
received the same frozen issue text without source labels.
|
| 39 |
+
|
| 40 |
+
| Method | Training examples | Macro F1 | Accuracy | Bug recall |
|
| 41 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 42 |
+
| Text rules | — | 77.9% | 25 / 32 | 7 / 8 |
|
| 43 |
+
| Classifier v1 | 594 | 68.4% | 22 / 32 | 4 / 8 |
|
| 44 |
+
| **Classifier v2** | **610** | **75.1%** | **24 / 32** | **6 / 8** |
|
| 45 |
+
| Classifier v3 | 638 | 68.0% | 22 / 32 | 5 / 8 |
|
| 46 |
+
|
| 47 |
+
V2 had the highest macro F1 among the trained candidates on this holdout.
|
| 48 |
+
On the earlier 24-issue bug/question holdout, v2 scored 56.8% macro F1 and
|
| 49 |
+
v1 scored 68.6%. These small samples support reporting the individual
|
| 50 |
+
benchmarks and keeping the rules in production. Category results do not
|
| 51 |
+
establish duplicate detection, severity, or security-reporting performance.
|
| 52 |
+
|
| 53 |
+
## Use
|
| 54 |
+
|
| 55 |
+
Install `huggingface_hub`, `scikit-learn==1.8.0`, and `skops==0.13.0`.
|
| 56 |
+
The preprocessing below matches training.
|
| 57 |
+
|
| 58 |
+
```python
|
| 59 |
+
import re
|
| 60 |
+
|
| 61 |
+
from huggingface_hub import hf_hub_download
|
| 62 |
+
from skops.io import load
|
| 63 |
+
|
| 64 |
+
non_prose = re.compile(
|
| 65 |
+
r"```[\s\S]*?(?:```|\Z)|<!--[\s\S]*?-->|https?://\S+|[\w.+-]+@[\w.-]+\.\w+|(?<!\w)@[\w-]+"
|
| 66 |
+
)
|
| 67 |
+
title = "Downloaded PNG is missing the chart legend"
|
| 68 |
+
body = "The preview shows the legend. Exporting the chart produces a PNG without it."
|
| 69 |
+
text = f"{non_prose.sub(' ', title)}\n" * 3 + non_prose.sub(" ", body)[:3000]
|
| 70 |
+
path = hf_hub_download("vismayparekh/maintainerlens-issue-classifier", "issue-classifier.skops")
|
| 71 |
+
print(load(path).predict([text])[0])
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
[MaintainerLens source](https://github.com/vismayparekh/maintainerlens) ·
|
| 75 |
+
[Published evaluation dataset](https://huggingface.co/datasets/vismayparekh/maintainerlens-benchmark)
|
classifier-external-32.csv
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
repository,number,title,url,expected_category,duplicate_group,source_label
|
| 2 |
+
pallets/flask,4355,Async/await, read file error: greenlet.error: cannot switch to a different thread,https://github.com/pallets/flask/issues/4355,Bug,,bug
|
| 3 |
+
pallets/flask,4297,Blueprint.errorhandler restricts type of result function which avoids chaining,https://github.com/pallets/flask/issues/4297,Bug,,bug
|
| 4 |
+
pallets/flask,4295,error handler type check fails,https://github.com/pallets/flask/issues/4295,Bug,,bug
|
| 5 |
+
pallets/flask,4037,The Blueprint(url_prefix) parameter is not working when using nesting blueprint,https://github.com/pallets/flask/issues/4037,Bug,,bug
|
| 6 |
+
python/cpython,162745,A failed `curses.newterm()` leaves a stale `new_prescr()` screen,https://github.com/python/cpython/issues/162745,Bug,,type-bug
|
| 7 |
+
python/cpython,162743,statistics.correlation() returns -0.2 for two timestamp series with an exact correlation of +1,https://github.com/python/cpython/issues/162743,Bug,,type-bug
|
| 8 |
+
python/cpython,162741,"tarfile with errors=""strict"" cannot read long names cut mid-character",https://github.com/python/cpython/issues/162741,Bug,,type-bug
|
| 9 |
+
python/cpython,162738,Self-referential `exception.__context__`,https://github.com/python/cpython/issues/162738,Bug,,type-bug
|
| 10 |
+
streamlit/streamlit,14706,Screen is not empty after clearing all contents and rerun.,https://github.com/streamlit/streamlit/issues/14706,Question,,type:question
|
| 11 |
+
streamlit/streamlit,13063,[Request for feedback] Use-cases for `add_rows`,https://github.com/streamlit/streamlit/issues/13063,Question,,type:question
|
| 12 |
+
streamlit/streamlit,11726,Unable to deploy: 403 Error,https://github.com/streamlit/streamlit/issues/11726,Question,,type:question
|
| 13 |
+
streamlit/streamlit,9364,streamlit unable to maximize the matplotlib fig,https://github.com/streamlit/streamlit/issues/9364,Question,,type:question
|
| 14 |
+
streamlit/streamlit,8966,Question: when trying to run a test (Error: protoc version 3.12.4 is < 3.20),https://github.com/streamlit/streamlit/issues/8966,Question,,type:question
|
| 15 |
+
streamlit/streamlit,8848,"My streamlit page is just blank. it shows ""please wait"" and displays nothing else",https://github.com/streamlit/streamlit/issues/8848,Question,,type:question
|
| 16 |
+
streamlit/streamlit,7926,Slow,https://github.com/streamlit/streamlit/issues/7926,Question,,type:question
|
| 17 |
+
streamlit/streamlit,7735,Why are my static resources not accessible?,https://github.com/streamlit/streamlit/issues/7735,Question,,type:question
|
| 18 |
+
python/cpython,162749,Improve AC generated code for conversion of int to Py_ssize_t,https://github.com/python/cpython/issues/162749,Feature request,,type-feature
|
| 19 |
+
python/cpython,162705,Approaches to prevent memory from QSBR related growth with blocking C calls in free-threading,https://github.com/python/cpython/issues/162705,Feature request,,type-feature
|
| 20 |
+
python/cpython,162648,Suggestion for a helper function for email.utils,https://github.com/python/cpython/issues/162648,Feature request,,type-feature
|
| 21 |
+
python/cpython,162637,Prefer the tail-calling interpreter by default when supported,https://github.com/python/cpython/issues/162637,Feature request,,type-feature
|
| 22 |
+
python/cpython,162635,Set external flag on interpreter frames to 0,https://github.com/python/cpython/issues/162635,Feature request,,type-feature
|
| 23 |
+
python/cpython,162540,Implement PEP 824 - None-coalescing operator,https://github.com/python/cpython/issues/162540,Feature request,,type-feature
|
| 24 |
+
python/cpython,162537,Add tkinter support for Tcl channels,https://github.com/python/cpython/issues/162537,Feature request,,type-feature
|
| 25 |
+
python/cpython,162513,Speed up equality comparisons between contiguous byte `memoryview`s with `memcmp()`,https://github.com/python/cpython/issues/162513,Feature request,,type-feature
|
| 26 |
+
pallets/flask,6165,update docs for `MAX_CONTENT_LENGTH`,https://github.com/pallets/flask/issues/6165,Other,,docs
|
| 27 |
+
pallets/flask,5881,asgiref fails with gevent patching,https://github.com/pallets/flask/issues/5881,Other,,docs
|
| 28 |
+
pallets/flask,5825,Document 415 on the receiving json section,https://github.com/pallets/flask/issues/5825,Other,,docs
|
| 29 |
+
pallets/flask,5817,asyncio is not compatible with gevent,https://github.com/pallets/flask/issues/5817,Other,,docs
|
| 30 |
+
python/cpython,162604,"Docs: the Reference says an ordered comparison with `Decimal('NaN')` is false, but it raises `InvalidOperation`",https://github.com/python/cpython/issues/162604,Other,,docs
|
| 31 |
+
python/cpython,162603,"Docs: `str()` of a `SyntaxError` is not only the error message, and `SyntaxError.msg` is not documented",https://github.com/python/cpython/issues/162603,Other,,docs
|
| 32 |
+
python/cpython,162602,"Docs: the Reference says integer literals have no length limit, but some long decimal literals fail to compile",https://github.com/python/cpython/issues/162602,Other,,docs
|
| 33 |
+
python/cpython,162601,"Docs: the Reference says the exception is not available in a `finally` clause, but `sys.exception()` and a bare `raise` see it",https://github.com/python/cpython/issues/162601,Other,,docs
|
issue-classifier.skops
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc3975aeb1c97d18abb647d2690f8e24075067c212c0100e53c4a010c5efca5d
|
| 3 |
+
size 11202153
|
training-summary.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"training_repositories": [
|
| 3 |
+
"encode/httpx",
|
| 4 |
+
"jupyterlab/jupyterlab",
|
| 5 |
+
"microsoft/vscode",
|
| 6 |
+
"python-poetry/poetry",
|
| 7 |
+
"sphinx-doc/sphinx"
|
| 8 |
+
],
|
| 9 |
+
"training_snapshot_sha256": "b405fe75f318a08294440f928ef4747db890c430e5e13496ccbbedebf2f3694b",
|
| 10 |
+
"curated_annotations_sha256": "6d6944697fb914501205dbbe81ebedb143dd61e92bc4463c38b5cb59479d0650",
|
| 11 |
+
"curated_snapshot_sha256": "d665ccef99035e308c0eed4d4a54d77262231848d6e64377b67cf5a761fae17d",
|
| 12 |
+
"curated_samples": 16,
|
| 13 |
+
"curated_weight": 6.0,
|
| 14 |
+
"bug_boost": 1.35,
|
| 15 |
+
"samples": 610,
|
| 16 |
+
"class_counts": {
|
| 17 |
+
"Bug": 168,
|
| 18 |
+
"Question": 168,
|
| 19 |
+
"Feature request": 160,
|
| 20 |
+
"Other": 114
|
| 21 |
+
}
|
| 22 |
+
}
|