Skip to content

Feature/flattening - #32

Open
h4r5h6l wants to merge 4 commits into
interviewstreet:mainfrom
h4r5h6l:feature/flattening
Open

Feature/flattening#32
h4r5h6l wants to merge 4 commits into
interviewstreet:mainfrom
h4r5h6l:feature/flattening

Conversation

@h4r5h6l

@h4r5h6l h4r5h6l commented Sep 1, 2026

Copy link
Copy Markdown

No description provided.

Replaced the fixed-threshold action mapper with a context-driven
decide_action() that personalized routing using direct mentions,
real urgency/deadlines, verified/admin senders, business opt-in/out
state, group-mute state, forwarding, and safety (spam + prompt-injection).

Also:
- Added code/evaluate_sample.py to report accuracy, per-class
  precision/recall/F1, macro-F1, and confusion heatmaps against
  sample_messages.csv.
- code/features.py: flatten_row() parses the 9 context_* JSON blobs
  per seed row into scalar features with defensive coercion
  (_to_int/_to_float/_to_bool/_cat); flatten_features() enforces
  deterministic column order and adds synthetic sdv_primary_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant