Instructions to use jimnoneill/xbox-compulsion-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use jimnoneill/xbox-compulsion-classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("jimnoneill/xbox-compulsion-classifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download calibrated_model_v2.json from jimnoneill/xbox-compulsion-classifier: direct link, hf CLI and curl.
- Browser
- Download file 4.01 kB
-
https://huggingface.co/jimnoneill/xbox-compulsion-classifier/resolve/main/calibrated_model_v2.json
- Command line
-
hf download hf://jimnoneill/xbox-compulsion-classifier/calibrated_model_v2.json
-
curl -L -o calibrated_model_v2.json https://huggingface.co/jimnoneill/xbox-compulsion-classifier/resolve/main/calibrated_model_v2.json
4.01 kB
| { | |
| "model": "LogisticRegression(C=1.0)", | |
| "features": [ | |
| "burstiness_B", | |
| "time_entropy", | |
| "night_intensity", | |
| "hawkes_n", | |
| "weekend_ratio" | |
| ], | |
| "coefficients": { | |
| "burstiness_B": 0.8374956578895095, | |
| "time_entropy": 1.2579741402848228, | |
| "night_intensity": 0.5837684113680046, | |
| "hawkes_n": 0.9223635321857693, | |
| "weekend_ratio": 0.20416030303581986 | |
| }, | |
| "intercept": 0.25308770940252606, | |
| "scaler_mean": { | |
| "burstiness_B": 0.19487084107773855, | |
| "time_entropy": 3.7942938624255387, | |
| "night_intensity": 0.1255963970857874, | |
| "hawkes_n": 0.8821584461279186, | |
| "weekend_ratio": 0.6597237315034026 | |
| }, | |
| "scaler_std": { | |
| "burstiness_B": 0.16343717667166913, | |
| "time_entropy": 0.26226267912207385, | |
| "night_intensity": 0.10005082150675923, | |
| "hawkes_n": 0.06984404222741004, | |
| "weekend_ratio": 0.1559336662101948 | |
| }, | |
| "validation": { | |
| "method": "leave-one-out", | |
| "n_samples": 32, | |
| "n_compulsive_labels": 15, | |
| "n_strategic_labels": 17, | |
| "accuracy": 0.9062, | |
| "f1": 0.8966, | |
| "auc": 0.9333, | |
| "brier_score": 0.1007, | |
| "spearman_r": 0.9117, | |
| "spearman_p": 0.0, | |
| "pearson_r": 0.8831, | |
| "pearson_p": 0.0 | |
| }, | |
| "independent_labels": { | |
| "Trump_Android": { | |
| "label": 1.0, | |
| "evidence_type": "staff_testimony" | |
| }, | |
| "Trump_Full": { | |
| "label": 0.8, | |
| "evidence_type": "staff_testimony" | |
| }, | |
| "BasedMikeLee": { | |
| "label": 0.9, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "SenTedCruz": { | |
| "label": 0.7, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "ChrisMurphyCT": { | |
| "label": 0.65, | |
| "evidence_type": "self_statement" | |
| }, | |
| "HawleyMO": { | |
| "label": 0.65, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "marcorubio": { | |
| "label": 0.6, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "MarshaBlackburn": { | |
| "label": 0.6, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "SenSchumer": { | |
| "label": 0.45, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenWarren": { | |
| "label": 0.5, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenSanders": { | |
| "label": 0.45, | |
| "evidence_type": "role_based" | |
| }, | |
| "ossoff": { | |
| "label": 0.55, | |
| "evidence_type": "demographic" | |
| }, | |
| "SenRonJohnson": { | |
| "label": 0.6, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "SenatorHagerty": { | |
| "label": 0.55, | |
| "evidence_type": "volume_based" | |
| }, | |
| "SenBlumenthal": { | |
| "label": 0.5, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenRickScott": { | |
| "label": 0.6, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "SenFeinstein": { | |
| "label": 0.1, | |
| "evidence_type": "health_status" | |
| }, | |
| "SenatorRisch": { | |
| "label": 0.15, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenatorTester": { | |
| "label": 0.2, | |
| "evidence_type": "demographic" | |
| }, | |
| "SenGillibrand": { | |
| "label": 0.2, | |
| "evidence_type": "pattern_based" | |
| }, | |
| "SenHydeSmith": { | |
| "label": 0.15, | |
| "evidence_type": "demographic" | |
| }, | |
| "SenShelby": { | |
| "label": 0.1, | |
| "evidence_type": "health_status" | |
| }, | |
| "SenJohnHoeven": { | |
| "label": 0.15, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenatorCollins": { | |
| "label": 0.25, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenAngusKing": { | |
| "label": 0.2, | |
| "evidence_type": "demographic" | |
| }, | |
| "SenThomTillis": { | |
| "label": 0.25, | |
| "evidence_type": "role_based" | |
| }, | |
| "SenatorWarnock": { | |
| "label": 0.4, | |
| "evidence_type": "role_based" | |
| }, | |
| "ChuckGrassley": { | |
| "label": 0.35, | |
| "evidence_type": "mixed" | |
| }, | |
| "SenTuberville": { | |
| "label": 0.5, | |
| "evidence_type": "public_behavior" | |
| }, | |
| "SenatorSinema": { | |
| "label": 0.3, | |
| "evidence_type": "role_based" | |
| }, | |
| "timkaine": { | |
| "label": 0.35, | |
| "evidence_type": "role_based" | |
| }, | |
| "maziehirono": { | |
| "label": 0.4, | |
| "evidence_type": "public_behavior" | |
| } | |
| } | |
| } |