Run this model with HF Jobs
Run wongyck/CPS-BERT 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/wongyck/CPS-BERT. 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/wongyck/CPS-BERT 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 wongyck/CPS-BERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wongyck/CPS-BERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="wongyck/CPS-BERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("wongyck/CPS-BERT") model = AutoModelForSequenceClassification.from_pretrained("wongyck/CPS-BERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CPS-BERT
Model Description
CPS-BERT is a fine-tuned BERT model for the automated diagnosis of collaborative problem solving (CPS) processes from students' verbal interactions.
The model was trained using annotated utterances collected from secondary school students engaged in collaborative problem solving tasks in Singapore.
Classification Categories
| Label | CPS Process |
|---|---|
| NA | No target CPS process identified |
| SS1 | Sense-making |
| SS2 | Shared understanding |
| SS3 | Formulating solutions |
| SS4 | Establishing roles |
| SS5 | Making contributions |
| SS6 | Maintaining progress |
| SS7 | Evaluating solutions |
| SS8 | Reflecting |
Model Performance
The selected model (epoch 28) was evaluated on a held-out test dataset of 1,514 labelled instances.
| Metric | Score |
|---|---|
| Accuracy | 0.7827 |
| Weighted F1 | 0.7709 |
| Macro F1 | 0.3998 |
| CPS Weighted F1 (SS1โSS8) | 0.4331 |
| CPS Macro F1 (SS1โSS8) | 0.3364 |
| Binary CPS Detection F1 | 0.7431 |
Binary CPS detection was evaluated by collapsing the nine-category predictions into NA and CPS.
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="YOUR_USERNAME/CPS-BERT",
truncation=True,
max_length=128
)
classifier("I think we should try another method.")
Limitations
The model exhibits varying classification performance across CPS categories due in part to class imbalance. It performs single-label classification of individual utterances without incorporating conversational context.
Further validation is required across different educational contexts and collaborative problem solving tasks.
The model is intended for research purposes and should not replace teachers' professional judgement.
Citation
Citation information will be provided upon publication of the associated research.
- Downloads last month
- 13
Model tree for wongyck/CPS-BERT
Base model
google-bert/bert-base-uncased