When thresholded to a binary classifier, it achieves a macro-averaged F1-score of
0.79
. The original classifier achieves
0.81
on the same dataset, but this classifier is orders of magnitude faster on CPU.
precision recall f1-score support
not edu 0.96 0.98 0.97 42528
edu 0.70 0.54 0.61 4215
accuracy 0.94 46743
macro avg 0.83 0.76 0.79 46743
weighted avg 0.93 0.94 0.93 46743
Installation
Install model2vec with the inference extra using pip:
pip install model2vec[inference]
Usage
Load this model using the
from_pretrained
method:
from model2vec.inference import StaticModelPipeline
# Load a pretrained Model2Vec model
model = StaticModelPipeline.from_pretrained("minishlab/potion-8m-edu-classifier")
# Predict labels
label = model.predict(["Example sentence"])
@software{minishlab2024model2vec,
authors = {Stephan Tulkens, Thomas van Dongen},
title = {Model2Vec: Turn any Sentence Transformer into a Small Fast Model},
year = {2024},
url = {https://github.com/MinishLab/model2vec},
}
Runs of minishlab potion-8m-edu-classifier on huggingface.co
6
Total runs
-1
24-hour runs
-1
3-day runs
-1
7-day runs
5
30-day runs
More Information About potion-8m-edu-classifier huggingface.co Model
potion-8m-edu-classifier huggingface.co is an AI model on huggingface.co that provides potion-8m-edu-classifier's model effect (), which can be used instantly with this minishlab potion-8m-edu-classifier model. huggingface.co supports a free trial of the potion-8m-edu-classifier model, and also provides paid use of the potion-8m-edu-classifier. Support call potion-8m-edu-classifier model through api, including Node.js, Python, http.
potion-8m-edu-classifier huggingface.co is an online trial and call api platform, which integrates potion-8m-edu-classifier's modeling effects, including api services, and provides a free online trial of potion-8m-edu-classifier, you can try potion-8m-edu-classifier online for free by clicking the link below.
minishlab potion-8m-edu-classifier online free url in huggingface.co:
potion-8m-edu-classifier is an open source model from GitHub that offers a free installation service, and any user can find potion-8m-edu-classifier on GitHub to install. At the same time, huggingface.co provides the effect of potion-8m-edu-classifier install, users can directly use potion-8m-edu-classifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
potion-8m-edu-classifier install url in huggingface.co: