Basics · @user/http Ablation, Temperature Calibration & 4-Emotion Geometry · 128.99 MB WASM q8

Inside 4-Class Emotion — Normalization Ablation & Calibration Lab

Measure how CardiffNLP @user/http normalization, pictographic emojis, and hashtags shift cardiffnlp/twitter-roberta-base-emotion across the 4-class probability simplex, plot the trajectory in 2D Affective Circumplex geometry (Valence × Activation), and tune softmax temperature calibration live.

1. Interactive @user / http Ablation & 4-Emotion Geometry

Append social cues to watch coordinates move live:

4-Emotion Probability Geometry (Valence × Activation)

x = (joy + optimism) − (anger + sadness) · y = (joy + anger) − (optimism + sadness). Dashed path traces variants 1 → 5; hollow ring marks calibrated T.

Softmax Temperature Calibration Lab (T)

Norm Valence Shift–
Calibrated Top Prob–
Calibrated Entropy–
Batch Latency · NaN–

Run ablation above to calibrate live Normalized probabilities.

Measures exact valence shift from @user/http normalization, emojis, and hashtags.

2. Ablation Variants Table (Raw vs Normalized vs Stripped)

Five-variant social text ablation comparing raw, normalized, emoji-stripped, hashtag-stripped, and bare prose 4-emotion outputs
# Variant Transformed Text Top Emotion Joy / Opt / Ang / Sad Valence
Initialize the model above to compute all 5 emotion geometry coordinates.

3. Inspect Temperature Calibration & 4-Emotion Geometry Source

Show the code · emotion-core.mjs — applyTemperatureCalibration() & projectEmotionGeometry()
Show the code · emotion-client.js — renderEmotionCircumplexCanvas()