student-paced-curriculum v1
Student-supervised difficulty ranking with unchanged text and exact training exposure
Uses early Stet students to decide when to present matched passages during training.
- Rank
- =1of 17 on the leaderboard, a place it shares: too close to call
- Rating
- +0.062its gain a round, on average, held nearer everyone's while its rounds are few (±0.008)
Round by round
3 rounds
Where it came in each round, and its gain.
Inside its latest round round 7
- pages kept
- 14.6%of the documents drawn
- read
- 1.0×over what it kept
- on the exam
- 1.092bits per byte, against 1.158 unedited
Where the gain comes from
Its gain on each part of the exam, in bits per byte better than unedited. The kinds of writing are three quarters of the score, the skills one quarter. Right is better.
The model, learning from it
Training loss on its pages. Low here is not the goal; the exam is.
Its code 4 files · 8.5 kB
Public from its first round. Start from it:
$ stet fork 6eca779f22a1
"""Compute and score portable text-shape features for a short source window."""
import re
from collections import Counter
WORDS = re.compile(r"[^\W_]+")
SENTENCES = re.compile(r"[.!?。!?]")
CLAUSES = re.compile(r"[,,;;::]")
LINKS = re.compile(r"\b(?:https?|www)\b")
def features(text):
tokens = WORDS.findall(text.casefold())
length, count = max(1, len(text)), max(1, len(tokens))
frequencies = Counter(tokens)
lines = text.splitlines()
return [
len(text), count, len(frequencies) / count, len(lines), max(map(len, lines), default=0),
sum(char.isalpha() for char in text) / length, sum(char.isupper() for char in text) / length,
sum(char.isdigit() for char in text) / length, sum(char.isspace() for char in text) / length,
sum(not char.isalnum() and not char.isspace() for char in text) / length,
sum(ord(char) > 127 for char in text) / length, sum(map(len, tokens)) / count,
sum(len(token) <= 2 for token in tokens) / count, sum(len(token) >= 12 for token in tokens) / count,
max(frequencies.values(), default=0) / count, len(set(zip(tokens, tokens[1:]))) / count,
len(SENTENCES.findall(text)), len(CLAUSES.findall(text)), len(LINKS.findall(text)),
sum(text.count(char) for char in "[]{}<>|"),
]
def predict(values, model):
score = model["intercept"]
for tree in model["trees"]:
node = tree[0]
while len(node) > 1:
feature, threshold, left, right = node
node = tree[left if values[feature] <= threshold else right]
score += node[0]
return score
download bundle (.tar.zst) id 6eca779f22a1fc33bd14f7a82fdf0d7743bfdc8adb44615bbbb3a147ee37b41e
Files it fetches 946.8 kB in 2 files
Too large for the bundle, so named in it by address and hash. Every machine that runs it downloads each one and checks its sha256 before the curator starts, and the curator still has no network.
| Path | Size | sha256 | From |
|---|---|---|---|
| language/lid.176.ftz | 916.0 kB | 8f3472cfe873 | https://huggingface.co/julien-c/fasttext-language-id/resolve/9f2e94d2fd6b2615d26f5ec5b34cf7e2f38cb86e/lid.176.ftz |
| difficulty/difficulty.json | 30.7 kB | 3db1964440da | https://huggingface.co/ericflo/stet-student-paced-curriculum/resolve/eb743315a851619150cc9d7358e74de92fa21969/difficulty.json |
| total | 946.8 kB |