rasbt / ai-text-detector-logreg

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 12 2026
text-classification

Introduction of ai-text-detector-logreg

Model Details of ai-text-detector-logreg

TF-IDF Logistic Regression AI-Text Detector

This is a binary classifier for distinguishing human-written and AI-generated text. It combines word-level TF-IDF features with logistic regression and applies Platt scaling to the output scores.

The model was trained on rasbt/human-vs-ai-50k . Human-written text has label 0 and AI-generated text has label 1. The recorded cross-validation accuracy was 98.17%.

logreg-ai-detector.json contains the training and calibration metadata. The recommended inference implementation is provided in the rasbt/ai-detector repository.

Download and use
hf download rasbt/ai-text-detector-logreg \
  --local-dir models/ai-text-detector-logreg
from pathlib import Path

from joblib import load


model_dir = Path("models/ai-text-detector-logreg")
classifier = load(model_dir / "logreg-ai-detector.joblib")

text = "Paste the text to classify here."
ai_column = list(classifier.classes_).index(1)
ai_probability = classifier.predict_proba([text])[0, ai_column]

print({"score": round(100 * float(ai_probability), 4)})

Related models

Limitations

Performance may change for text from generators, domains, languages, and editing workflows not represented in the training set. Short or partly AI-assisted text may also be harder to classify. The score should not be treated as definitive evidence that a person did or did not write a text.

The .joblib file uses Python serialization. Only load it from a repository you trust.

Runs of rasbt ai-text-detector-logreg on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About ai-text-detector-logreg huggingface.co Model

More ai-text-detector-logreg license Visit here:

https://choosealicense.com/licenses/apache-2.0

ai-text-detector-logreg huggingface.co

ai-text-detector-logreg huggingface.co is an AI model on huggingface.co that provides ai-text-detector-logreg's model effect (), which can be used instantly with this rasbt ai-text-detector-logreg model. huggingface.co supports a free trial of the ai-text-detector-logreg model, and also provides paid use of the ai-text-detector-logreg. Support call ai-text-detector-logreg model through api, including Node.js, Python, http.

ai-text-detector-logreg huggingface.co Url

https://huggingface.co/rasbt/ai-text-detector-logreg

rasbt ai-text-detector-logreg online free

ai-text-detector-logreg huggingface.co is an online trial and call api platform, which integrates ai-text-detector-logreg's modeling effects, including api services, and provides a free online trial of ai-text-detector-logreg, you can try ai-text-detector-logreg online for free by clicking the link below.

rasbt ai-text-detector-logreg online free url in huggingface.co:

https://huggingface.co/rasbt/ai-text-detector-logreg

ai-text-detector-logreg install

ai-text-detector-logreg is an open source model from GitHub that offers a free installation service, and any user can find ai-text-detector-logreg on GitHub to install. At the same time, huggingface.co provides the effect of ai-text-detector-logreg install, users can directly use ai-text-detector-logreg installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ai-text-detector-logreg install url in huggingface.co:

https://huggingface.co/rasbt/ai-text-detector-logreg

Url of ai-text-detector-logreg

ai-text-detector-logreg huggingface.co Url

Provider of ai-text-detector-logreg huggingface.co

rasbt
ORGANIZATIONS

Other API from rasbt