Skip to content

Add time-decay weighting support for ML spam detection#114

Merged
Szer merged 1 commit intomainfrom
ml-weight-decay
Feb 13, 2026
Merged

Add time-decay weighting support for ML spam detection#114
Szer merged 1 commit intomainfrom
ml-weight-decay

Conversation

@Szer
Copy link
Contributor

@Szer Szer commented Feb 13, 2026

Add configurable time-decay weighting w(t) = exp(-k * age_days) for ML training examples via ML_WEIGHT_DECAY_K env variable (default 0 = disabled). When enabled, recent messages have higher weight in model training, making the model more responsive to new spam patterns. Also add ml-experiment.fsx script for REPL-based comparison of baseline vs weighted models with per-interval precision/recall analysis.

Add configurable time-decay weighting w(t) = exp(-k * age_days) for ML training examples via ML_WEIGHT_DECAY_K env variable (default 0 = disabled). When enabled, recent messages have higher weight in model training, making the model more responsive to new spam patterns. Also add ml-experiment.fsx script for REPL-based comparison of baseline vs weighted models with per-interval precision/recall analysis.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Szer Szer enabled auto-merge (squash) February 13, 2026 00:26
@Szer Szer merged commit 1dad254 into main Feb 13, 2026
1 check passed
@Szer Szer deleted the ml-weight-decay branch February 13, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant