Text Classification
Scikit-learn
English
occupation-classification
human-in-the-loop
business-systems-analysis
tfidf
logistic-regression
onet
Run this model with HF Jobs
Run PabloRod11/occupation-hitl-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/PabloRod11/occupation-hitl-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/PabloRod11/occupation-hitl-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use PabloRod11/occupation-hitl-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use PabloRod11/occupation-hitl-classifier with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("PabloRod11/occupation-hitl-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
Release evaluated occupation classifier and model card
Browse filesFiles changed (9)
- ATTRIBUTION.txtAdded+1
- LICENSEAdded+4
- README.md+86
- inference.pyAdded+100
- metrics.jsonAdded+514
- model.jsonAdded
- provenance.jsonAdded
- requirements.txtAdded+1
- training_metadata.jsonAdded+36
1Includes information from the O*NET® 31.0 Database by the U.S. Department of Labor, Employment and Training Administration (USDOL/ETA), used under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). O*NET® is a trademark of USDOL/ETA. This project filters occupations, maps them to five simulated labels, removes duplicate task text and assigns grouped splits. USDOL/ETA has not approved, endorsed, or tested these modifications. Source license: https://www.onetcenter.org/license_db.html1234O*NET-derived model and data: Creative Commons Attribution 4.0 International (CC BY 4.0).Full license: https://creativecommons.org/licenses/by/4.0/legalcode
Includes information from the O*NET® 31.0 Database by the U.S. Department of Labor, Employment and Training Administration (USDOL/ETA), used under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). O*NET® is a trademark of USDOL/ETA. This project filters occupations, maps them to five simulated labels, removes duplicate task text and assigns grouped splits. USDOL/ETA has not approved, endorsed, or tested these modifications. Source license: https://www.onetcenter.org/license_db.html123---license: cc-by-4.0---1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889---language: enlicense: cc-by-4.0library_name: sklearnpipeline_tag: text-classificationtags:- occupation-classification- human-in-the-loop- business-systems-analysis- tfidf- logistic-regression- onetmodel-index:- name: occupation-hitl-classifierresults: []---# Occupation HITL classifier**Independent case study with simulated business requirements.** Prepared for **PabloRod11**. No stakeholder interviews, business sign-off, production deployment, or measured business savings are claimed.## Model and intended useAn explainable English task-text classifier: TF-IDF word unigrams/bigrams plus multinomial logistic regression. It suggests one of five project categories: SOFTWARE, FINANCE, HEALTHCARE, EDUCATION, TRADES. A separate demonstration routes uncertainty to human review and preserves final labels and corrections.Version: `onet31-tfidf-8cc1b32a235b`. Export format: JSON vocabulary, IDF values, coefficients, intercepts, classes, and frozen thresholds. Inference needs only Python's standard library; the JSON contains no executable pickle payload. This custom artifact does not implement Transformers AutoModel/pipeline loading or imply hosted Inference Provider support.Use for education, BSA workflow demonstration, and baseline experimentation. Do not use for hiring, ranking people, eligibility, clinical decisions, or comprehensive occupation coding.## Training data and taxonomySelected O*NET® 31.0 Task Statements, joined to Occupation Data. The official source contains 18,838 task statements. The project excludes 17,441 rows outside its explicit 55-code occupation mapping and removes all 392 rows in repeated normalized-text clusters, leaving 1,005 tasks.The five labels are project design choices, not an official O*NET taxonomy. `provenance.json` lists the exact code-to-title mapping, source URLs/hashes, exclusions, task IDs, normalization, and splits.Split by occupation code, approximately 60/20/20 within each class: training 689 tasks/35 occupations, validation 143/10, final test 173/10. No occupation code or normalized exact task text crosses splits. Vectorizer vocabulary is fitted on training only. Six software occupations are selected, leaving just one software occupation in validation and one in test. Related wording and semantic duplicates can still remain.## Measured resultsOn the final test set of 173 tasks from ten held-out occupations:- Accuracy: **80.35%** (139/173).- Macro F1: **0.7854**.- Balanced accuracy (macro recall): **76.20%**.- Multiclass log loss: **0.7898**.- Auto-accepted: **77/173 (44.51%)**.- Correct among auto-accepted: **76/77 (98.70%)**.- Escalated: **89/173**; ordinary review: **7/173**.Full per-class precision/recall/F1/support and confusion matrices are in `metrics.json`. SOFTWARE recall is 53.85% on 13 tasks from one occupation; aggregate performance must not obscure that weakness.## Routing policy and uncertaintyFrozen thresholds: auto-accept ≥0.52; ordinary review ≥0.50 and <0.52; escalate <0.50. Zero-vocabulary inputs always escalate. The auto threshold was selected from 0.50–0.99 using validation only: lowest threshold with at least 20 accepted cases and empirical accepted accuracy ≥95%. On validation it accepted **66/143**, with **63/66 (95.45%)** correct. No threshold is tuned to final-test results.These are empirical task-level measurements, not a future 95% guarantee. Probabilities are **uncalibrated**. There are only ten held-out occupation groups, and no group-bootstrap interval is supplied. Task-level counts overstate independent evidence because tasks within an occupation are related. A probability threshold cannot reliably detect unrelated or out-of-taxonomy inputs.The prototype originally used 0.80 auto-accept on synthetic phrases. This trained release uses a distinct validation-selected policy; the earlier case study's thresholds and saved metrics do not describe this artifact.## Load and predictDownload `model.json` and `inference.py` into the same directory:```pythonfrom inference import Classifiermodel = Classifier('model.json')result = model.predict('Develop and test software applications.')print(result['prediction'], result['confidence'], result['route'])```Input must be a nonblank string of at most 10,000 characters. Unseen text can still receive an incorrect supported label. The caller must preserve a distinction between suggestion and final human decision.JSON inference probabilities match sklearn to maximum absolute error **2.78e-16** across **319** parity samples (all validation/test texts plus three implementation probes), within the 1e-10 tolerance. These probes check export correctness; they are not an independent accuracy benchmark.## ReproductionThe companion Space/source package includes `prepare_data.py`, `train.py`, pinned requirements, splits, and tests. Train with Python 3.12.14, scikit-learn 1.9.1, NumPy 2.5.4, SciPy 1.18.1; seed 42. Logistic regression C=4.0, max_iter=2000; up to 20,000 TF-IDF features; sublinear term frequency; L2 normalization.`training_metadata.json` records source-split and model hashes. Version identity incorporates model content, data hashes, and training/threshold configuration. Evaluation is a single grouped holdout; no cross-validation or transformer comparison is claimed.## LimitationsO*NET® tasks are not real job advertisements or real-user inputs. The mapping covers selected occupations only; no OTHER class is trained. Labels can conflate distinct kinds of work. Training classes are uneven (46 education tasks versus 207 trades tasks). The small number of held-out occupations limits generalization claims. Text can include misleading domain terms and the classifier has no contextual world understanding. Public demo roles are simulated; authentication, SLA alerts, durable operational storage, real stakeholder validation, and automatic retraining are outside scope.## Attribution and licenseIncludes information from the O*NET® 31.0 Database by the U.S. Department of Labor, Employment and Training Administration (USDOL/ETA), used under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). O*NET® is a trademark of USDOL/ETA. This project filters occupations, maps them to five simulated labels, removes duplicate task text and assigns grouped splits. USDOL/ETA has not approved, endorsed, or tested these modifications. Source license: https://www.onetcenter.org/license_db.htmlSource data: [O*NET® database](https://www.onetcenter.org/database.html). License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The derived data and supplied model are distributed with the same attribution license; original project code is MIT in the companion package. Inspired by Pablo Rodriguez's [HITL Review Pipeline notebook](https://github.com/pablorod11/ML-AI-Projects/blob/main/HITL_Review_Pipeline.ipynb). No endorsement of this project by USDOL/ETA is implied.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100"""Load the safe JSON baseline. Inference needs only Python's standard library."""import jsonimport mathfrom pathlib import Pathimport refrom collections import Counter
TOKEN_PATTERN = r"(?u)\b\w\w+\b"
def route_confidence(confidence, thresholds, known_features=True): """Model routing policy; absence of known text always requires escalation.""" if isinstance(confidence, bool) or not isinstance(confidence, (int, float)) or not math.isfinite(confidence) or not 0 <= confidence <= 1: raise ValueError('Confidence must be a finite probability') auto = thresholds['auto_accept'] return ('ESCALATE' if not known_features or confidence < thresholds['escalate'] else 'AUTO_ACCEPT' if auto is not None and confidence >= auto else 'HUMAN_REVIEW')
def validate_model(model): """Fail at load time rather than emit plausible predictions from corrupt data.""" try: if type(model['format_version']) is not int or model['format_version'] != 1: raise ValueError('Unsupported model format') expected = {'token_pattern': TOKEN_PATTERN, 'ngram_range': [1, 2], 'lowercase': True, 'sublinear_tf': True, 'norm': 'l2'} if model['vectorizer'] != expected: raise ValueError('Unsupported vectorizer configuration') classes, vocabulary = model['classes'], model['vocabulary'] if not isinstance(classes, list) or len(classes) != 5 or any(not isinstance(c, str) or not c for c in classes) or len(set(classes)) != 5: raise ValueError('Expected five unique classes') if not isinstance(model['model_version'], str) or not model['model_version'].strip(): raise ValueError('Missing model version') if not isinstance(vocabulary, dict) or not vocabulary or any(not isinstance(k, str) or type(v) is not int for k, v in vocabulary.items()) or set(vocabulary.values()) != set(range(len(vocabulary))): raise ValueError('Invalid vocabulary indices') width = len(vocabulary) def numbers(values, size): return isinstance(values, list) and len(values) == size and all(type(v) in (int, float) and math.isfinite(v) for v in values) if not numbers(model['idf'], width) or any(v <= 0 for v in model['idf']): raise ValueError('Invalid IDF values') if not numbers(model['intercept'], 5) or not isinstance(model['coefficients'], list) or len(model['coefficients']) != 5 or any(not numbers(row, width) for row in model['coefficients']): raise ValueError('Invalid classifier dimensions or weights') thresholds = model['thresholds'] if not isinstance(thresholds, dict) or set(thresholds) != {'auto_accept', 'escalate'}: raise ValueError('Invalid threshold configuration') for value in thresholds.values(): if value is not None and (type(value) not in (int, float) or not math.isfinite(value) or not 0 <= value <= 1): raise ValueError('Invalid routing threshold') if thresholds['escalate'] is None or (thresholds['auto_accept'] is not None and thresholds['auto_accept'] < thresholds['escalate']): raise ValueError('Inconsistent routing thresholds') except (KeyError, TypeError) as exc: raise ValueError('Incomplete or malformed model artifact') from exc
class OccupationClassifier: def __init__(self, path=None): directory = Path(__file__).parent self.path = Path(path) if path is not None else (directory / 'model.json' if (directory / 'model.json').exists() else directory / 'model' / 'model.json') self.model = json.loads(self.path.read_text()) validate_model(self.model) self.classes = self.model['classes'] self.thresholds = self.model['thresholds']
def predict(self, text): if not isinstance(text, str) or not text.strip(): raise ValueError('Enter a nonempty job title or description.') if len(text) > 10000: raise ValueError('Text must be at most 10,000 characters.') tokens = re.findall(TOKEN_PATTERN, text.lower()) terms = tokens + [' '.join(pair) for pair in zip(tokens, tokens[1:])] counts = Counter(terms) vocabulary = self.model['vocabulary'] features = {vocabulary[t]: (1 + math.log(n)) * self.model['idf'][vocabulary[t]] for t, n in counts.items() if t in vocabulary} norm = math.sqrt(sum(value * value for value in features.values())) if norm: features = {index: value / norm for index, value in features.items()} logits = [bias + sum(weights[index] * value for index, value in features.items()) for bias, weights in zip(self.model['intercept'], self.model['coefficients'])] maximum = max(logits) exp = [math.exp(value - maximum) for value in logits] probabilities = [value / sum(exp) for value in exp] winner = max(range(len(probabilities)), key=probabilities.__getitem__) confidence = probabilities[winner] route = route_confidence(confidence, self.thresholds, bool(features)) return {'label': self.classes[winner], 'prediction': self.classes[winner], 'confidence': confidence, 'route': route, 'probabilities': dict(zip(self.classes, probabilities)), 'known_features': len(features), 'model_version': self.model['model_version']}
Classifier = OccupationClassifier
if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('text') parser.add_argument('--model', type=Path) args = parser.parse_args() print(json.dumps(OccupationClassifier(args.model).predict(args.text), indent=2))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514{ "validation": { "count": 143, "accuracy": 0.7412587412587412, "macro_f1": 0.7247123725991762, "classification_report": { "EDUCATION": { "precision": 1.0, "recall": 0.42424242424242425, "f1-score": 0.5957446808510638, "support": 33.0 }, "FINANCE": { "precision": 0.75, "recall": 0.8333333333333334, "f1-score": 0.7894736842105263, "support": 36.0 }, "HEALTHCARE": { "precision": 0.5609756097560976, "recall": 0.8518518518518519, "f1-score": 0.6764705882352942, "support": 27.0 }, "SOFTWARE": { "precision": 0.75, "recall": 0.6428571428571429, "f1-score": 0.6923076923076923, "support": 14.0 }, "TRADES": { "precision": 0.8333333333333334, "recall": 0.9090909090909091, "f1-score": 0.8695652173913043, "support": 33.0 }, "accuracy": 0.7412587412587412, "macro avg": { "precision": 0.7788617886178862, "recall": 0.7322751322751323, "f1-score": 0.7247123725991762, "support": 143.0 }, "weighted avg": { "precision": 0.7912331570868157, "recall": 0.7412587412587412, "f1-score": 0.7324006492883758, "support": 143.0 } }, "confusion_matrix": [ [ 14, 5, 11, 0, 3 ], [ 0, 30, 4, 1, 1 ], [ 0, 1, 23, 1, 2 ], [ 0, 3, 2, 9, 0 ], [ 0, 1, 1, 1, 30 ] ], "log_loss": 0.8953816887395478, "routing": { "auto_accept_count": 66, "auto_accept_coverage": 0.46153846153846156, "auto_accept_accuracy": 0.9545454545454546, "escalate_count": 71 } }, "test": { "count": 173, "accuracy": 0.8034682080924855, "macro_f1": 0.7854200542005421, "classification_report": { "EDUCATION": { "precision": 0.9523809523809523, "recall": 0.7407407407407407, "f1-score": 0.8333333333333334, "support": 27.0 }, "FINANCE": { "precision": 0.8222222222222222, "recall": 0.8222222222222222, "f1-score": 0.8222222222222222, "support": 45.0 }, "HEALTHCARE": { "precision": 0.7636363636363637, "recall": 0.84, "f1-score": 0.8, "support": 50.0 }, "SOFTWARE": { "precision": 0.875, "recall": 0.5384615384615384, "f1-score": 0.6666666666666666, "support": 13.0 }, "TRADES": { "precision": 0.75, "recall": 0.868421052631579, "f1-score": 0.8048780487804879, "support": 38.0 }, "accuracy": 0.8034682080924855, "macro avg": { "precision": 0.8326479076479076, "recall": 0.7619691108112161, "f1-score": 0.7854200542005421, "support": 173.0 }, "weighted avg": { "precision": 0.8137058028676527, "recall": 0.8034682080924855, "f1-score": 0.8020348700596832, "support": 173.0 } }, "confusion_matrix": [ [ 20, 1, 3, 0, 3 ], [ 0, 37, 4, 1, 3 ], [ 1, 4, 42, 0, 3 ], [ 0, 2, 2, 7, 2 ], [ 0, 1, 4, 0, 33 ] ], "log_loss": 0.789789166612511, "routing": { "auto_accept_count": 77, "auto_accept_coverage": 0.44508670520231214, "auto_accept_accuracy": 0.987012987012987, "escalate_count": 89 } }, "export_parity": { "samples": 319, "maximum_probability_error": 2.7755575615628914e-16, "tolerance": 1e-10 }, "classes": [ "EDUCATION", "FINANCE", "HEALTHCARE", "SOFTWARE", "TRADES" ], "threshold_selection": { "split": "validation", "minimum_accepted_count": 20, "target_empirical_accuracy": 0.95, "selected": { "auto_accept": 0.52, "escalate": 0.5 }, "sweep": [ { "threshold": 0.5, "accepted_count": 72, "coverage": 0.5034965034965035, "accepted_accuracy": 0.9444444444444444 }, { "threshold": 0.51, "accepted_count": 67, "coverage": 0.46853146853146854, "accepted_accuracy": 0.9402985074626866 }, { "threshold": 0.52, "accepted_count": 66, "coverage": 0.46153846153846156, "accepted_accuracy": 0.9545454545454546 }, { "threshold": 0.53, "accepted_count": 62, "coverage": 0.43356643356643354, "accepted_accuracy": 0.967741935483871 }, { "threshold": 0.54, "accepted_count": 60, "coverage": 0.4195804195804196, "accepted_accuracy": 0.9666666666666667 }, { "threshold": 0.55, "accepted_count": 60, "coverage": 0.4195804195804196, "accepted_accuracy": 0.9666666666666667 }, { "threshold": 0.56, "accepted_count": 53, "coverage": 0.3706293706293706, "accepted_accuracy": 0.9622641509433962 }, { "threshold": 0.57, "accepted_count": 51, "coverage": 0.35664335664335667, "accepted_accuracy": 0.9607843137254902 }, { "threshold": 0.58, "accepted_count": 49, "coverage": 0.34265734265734266, "accepted_accuracy": 0.9795918367346939 }, { "threshold": 0.59, "accepted_count": 47, "coverage": 0.32867132867132864, "accepted_accuracy": 0.9787234042553191 }, { "threshold": 0.6, "accepted_count": 44, "coverage": 0.3076923076923077, "accepted_accuracy": 1.0 }, { "threshold": 0.61, "accepted_count": 43, "coverage": 0.3006993006993007, "accepted_accuracy": 1.0 }, { "threshold": 0.62, "accepted_count": 40, "coverage": 0.27972027972027974, "accepted_accuracy": 1.0 }, { "threshold": 0.63, "accepted_count": 39, "coverage": 0.2727272727272727, "accepted_accuracy": 1.0 }, { "threshold": 0.64, "accepted_count": 39, "coverage": 0.2727272727272727, "accepted_accuracy": 1.0 }, { "threshold": 0.65, "accepted_count": 37, "coverage": 0.25874125874125875, "accepted_accuracy": 1.0 }, { "threshold": 0.66, "accepted_count": 36, "coverage": 0.2517482517482518, "accepted_accuracy": 1.0 }, { "threshold": 0.67, "accepted_count": 34, "coverage": 0.23776223776223776, "accepted_accuracy": 1.0 }, { "threshold": 0.68, "accepted_count": 33, "coverage": 0.23076923076923078, "accepted_accuracy": 1.0 }, { "threshold": 0.69, "accepted_count": 31, "coverage": 0.21678321678321677, "accepted_accuracy": 1.0 }, { "threshold": 0.7, "accepted_count": 29, "coverage": 0.20279720279720279, "accepted_accuracy": 1.0 }, { "threshold": 0.71, "accepted_count": 28, "coverage": 0.1958041958041958, "accepted_accuracy": 1.0 }, { "threshold": 0.72, "accepted_count": 25, "coverage": 0.17482517482517482, "accepted_accuracy": 1.0 }, { "threshold": 0.73, "accepted_count": 23, "coverage": 0.16083916083916083, "accepted_accuracy": 1.0 }, { "threshold": 0.74, "accepted_count": 22, "coverage": 0.15384615384615385, "accepted_accuracy": 1.0 }, { "threshold": 0.75, "accepted_count": 19, "coverage": 0.13286713286713286, "accepted_accuracy": 1.0 }, { "threshold": 0.76, "accepted_count": 18, "coverage": 0.1258741258741259, "accepted_accuracy": 1.0 }, { "threshold": 0.77, "accepted_count": 12, "coverage": 0.08391608391608392, "accepted_accuracy": 1.0 }, { "threshold": 0.78, "accepted_count": 11, "coverage": 0.07692307692307693, "accepted_accuracy": 1.0 }, { "threshold": 0.79, "accepted_count": 11, "coverage": 0.07692307692307693, "accepted_accuracy": 1.0 }, { "threshold": 0.8, "accepted_count": 10, "coverage": 0.06993006993006994, "accepted_accuracy": 1.0 }, { "threshold": 0.81, "accepted_count": 9, "coverage": 0.06293706293706294, "accepted_accuracy": 1.0 }, { "threshold": 0.82, "accepted_count": 9, "coverage": 0.06293706293706294, "accepted_accuracy": 1.0 }, { "threshold": 0.83, "accepted_count": 9, "coverage": 0.06293706293706294, "accepted_accuracy": 1.0 }, { "threshold": 0.84, "accepted_count": 7, "coverage": 0.04895104895104895, "accepted_accuracy": 1.0 }, { "threshold": 0.85, "accepted_count": 7, "coverage": 0.04895104895104895, "accepted_accuracy": 1.0 }, { "threshold": 0.86, "accepted_count": 6, "coverage": 0.04195804195804196, "accepted_accuracy": 1.0 }, { "threshold": 0.87, "accepted_count": 3, "coverage": 0.02097902097902098, "accepted_accuracy": 1.0 }, { "threshold": 0.88, "accepted_count": 3, "coverage": 0.02097902097902098, "accepted_accuracy": 1.0 }, { "threshold": 0.89, "accepted_count": 2, "coverage": 0.013986013986013986, "accepted_accuracy": 1.0 }, { "threshold": 0.9, "accepted_count": 1, "coverage": 0.006993006993006993, "accepted_accuracy": 1.0 }, { "threshold": 0.91, "accepted_count": 1, "coverage": 0.006993006993006993, "accepted_accuracy": 1.0 }, { "threshold": 0.92, "accepted_count": 1, "coverage": 0.006993006993006993, "accepted_accuracy": 1.0 }, { "threshold": 0.93, "accepted_count": 1, "coverage": 0.006993006993006993, "accepted_accuracy": 1.0 }, { "threshold": 0.94, "accepted_count": 1, "coverage": 0.006993006993006993, "accepted_accuracy": 1.0 }, { "threshold": 0.95, "accepted_count": 0, "coverage": 0.0, "accepted_accuracy": null }, { "threshold": 0.96, "accepted_count": 0, "coverage": 0.0, "accepted_accuracy": null }, { "threshold": 0.97, "accepted_count": 0, "coverage": 0.0, "accepted_accuracy": null }, { "threshold": 0.98, "accepted_count": 0, "coverage": 0.0, "accepted_accuracy": null }, { "threshold": 0.99, "accepted_count": 0, "coverage": 0.0, "accepted_accuracy": null } ], "limitation": "Empirical validation accuracy is not a future accuracy guarantee; probabilities are not calibrated." }}1# Inference uses only the Python standard library.123456789101112131415161718192021222324252627282930313233343536{ "model_version": "onet31-tfidf-8cc1b32a235b", "trained_at_utc": "2026-10-16T07:16:09.864107+00:00", "seed": 42, "python": "3.12.14", "dependencies": { "numpy": "2.5.4", "scipy": "1.18.1", "scikit-learn": "1.9.1" }, "dataset_sha256": { "train": "efebcb4d3fe95194fe7de4f9bd4bebf776fcc7d51646a3a677388edf65a58691", "validation": "16a080a05ebee845b9a17e7e2bb19ba045d16b8cf7adbbd2beedf83f2e12fe2b", "test": "d3aa7631bf16ecd7f963ee815d4d99439c47d26d6fb7f9a31cc05bcaf6da2554" }, "split_counts": { "train": 689, "validation": 143, "test": 173 }, "split_group_counts": { "train": 35, "validation": 10, "test": 10 }, "parameters": { "C": 4.0, "max_iter": 2000, "max_features": 20000, "ngram_range": [ 1, 2 ] }, "model_sha256": "128c9d92d87a434a9039a7a8ce8c116603c418ccce17e0ef04e8c01de5c10e11"}ATTRIBUTION.txtAdded+1
LICENSEAdded+4
README.md+86
inference.pyAdded+100
metrics.jsonAdded+514
model.jsonAdded
provenance.jsonAdded
requirements.txtAdded+1
training_metadata.jsonAdded+36