Downloads · 30 days
13
11% of all-time downloads
polkas/educational-story-outcome-predictor
educational-story-outcome-predictor is a text classification model from polkas. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Version: 1.0 | Status: Stable | Release Date: September 16, 2025
Downloads · 30 days
13
11% of all-time downloads
All-time downloads
123
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Version: 1.0 | Status: Stable | Release Date: September 16, 2025
GitHub repo with modelling code
A fine-tuned DistilBERT model that predicts educational intervention outcomes from dual-sequence inputs: situation context + solution approach → success/failure prediction.
This model analyzes real educational scenarios and predicts the long-term effectiveness of interventions based on actual classroom outcomes, not theoretical or moral judgments about intervention approaches. The model learned from real teacher experiences to identify which intervention patterns tend to lead to successful vs. unsuccessful outcomes.
distilbert-base-uncased| Metric | Score |
|---|---|
| Accuracy | 74.18% |
| F1 Score | 82.18% |
| Precision | 71.80% |
| Recall | 96.05% |
Baseline Performance: 61.96% accuracy (most frequent class)
Improvement: +12.22 percentage points over baseline
DistilBERT outperforms RoBERTa (73.91% accuracy, 80.08% F1) while training 2.4x faster, making it the optimal choice for production deployment.
from transformers import pipeline
# Load the model
classifier = pipeline(
"text-classification",
model="polkas/educational-story-outcome-predictor"
)
# Example prediction (combine situation and solution)
situation = "Student struggling with reading comprehension in grade 3"
solution = "Teacher implements guided reading sessions with peer support"
combined_text = f"{situation} {solution}"
result = classifier(combined_text)
print(f"Prediction: {result[0]['label']} (confidence: {result[0]['score']:.2f})")
This repository includes example_usage.py and real_examples.json with 10 real examples from the MU-NLPC/Edustories-en dataset:
# Run the example script to see predictions on real data
python example_usage.py
The examples demonstrate both successful and failed interventions, achieving ~80% accuracy on these real cases.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model_name = "polkas/educational-story-outcome-predictor"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Prepare dual-sequence input
situation = "Your educational situation description..."
solution = "Your intervention solution description..."
# Tokenize
inputs = tokenizer(
situation, solution,
return_tensors="pt",
truncation=True,
padding=True,
max_length=512
)
# Get predictions
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(predictions, dim=-1).item()
confidence = torch.max(predictions, dim=-1)[0].item()
# Map to labels
labels = ['Failure', 'Success']
result = labels[predicted_class]
print(f"Prediction: {result} (confidence: {confidence:.3f})")
The model was evaluated on a stratified 25% holdout test set with the following results:
If you use this model in your research, please cite:
@misc{educational-story-outcome-predictor-2025,
title={Educational Story Outcome Predictor: A DistilBERT Model for Educational Intervention Analysis},
author={Maciej Nasinski},
year={2025},
url={https://huggingface.co/polkas/educational-story-outcome-predictor},
note={Fine-tuned DistilBERT model for binary classification of educational intervention outcomes}
}
@misc{edustories-en-2024,
title={MU-NLPC/Edustories-en},
author={MU-NLPC},
year={2024},
url={https://huggingface.co/datasets/MU-NLPC/Edustories-en}
}
This model card follows the guidelines from Mitchell et al. (2019) and Hugging Face Model Card Guidelines.