Downloads · 30 days
0
dogancbn/tfidf-ovr-logreg-mental-health
tfidf-ovr-logreg-mental-health is a machine learning model from dogancbn. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a traditional machine learning baseline model for multi-label mental health text classification.
Downloads · 30 days
0
Access
Public
Updated Dec 17, 2025
Repo size
28.1 MB
Likes
0
Public
Click a slice to open those files.
.joblib28.1 MB · 100%
From the Hugging Face model README
This repository contains a traditional machine learning baseline model for multi-label mental health text classification.
best_sklearn_no_fasttext.joblib
The .joblib file is a Python dictionary with the following keys:
import joblib
import numpy as np
bundle = joblib.load("best_sklearn_no_fasttext.joblib")
pipe = bundle["pipe"]
thr = bundle["thr"]
labels = bundle["labels"]
text = "I feel tired and hopeless lately."
probs = pipe.predict_proba([text])[0]
preds = (probs >= thr).astype(int)
results = dict(zip(labels, preds))
print(results)