Skip to content

fix(training): lift sour-rule recall 0.57 → 0.93 (match acid anions) - #42

Merged
rvnminers-A-and-N merged 1 commit into
mainfrom
fix/sour-rule-recall
Jun 26, 2026
Merged

rvnminers-A-and-N merged 1 commit into
mainfrom
fix/sour-rule-recall

Conversation

@rvnminers-A-and-N

Copy link
Copy Markdown
Collaborator

The acidity rule matched only protonated acids (-OH), missing carboxylate/sulfonate/phosphate anions and zwitterions — how many sour compounds are drawn. Matching both -OH and -O- lifts recall on labeled-sour 0.57 → 0.93 (firing 1349 → 1675/3295, fine for a structural cross-check). Fixed in predict.py + the train_taste.py validation copy.

Closes #41.

The acidity rule matched only protonated acids (-OH), missing every
carboxylate/sulfonate/phosphate anion and zwitterion — how many sour compounds
are actually drawn. Match both -OH and -O- forms (in predict.py and the
train_taste.py validation copy). Recall on labeled-sour rises 0.57 -> 0.93;
firing 1349 -> 1675/3295 (acceptable: the rule is the structural cross-check,
the trained sour_predicted head carries the perception signal).

Closes #41.
@rvnminers-A-and-N
rvnminers-A-and-N merged commit 61e3ca7 into main Jun 26, 2026
2 checks passed
@rvnminers-A-and-N
rvnminers-A-and-N deleted the fix/sour-rule-recall branch June 26, 2026 23:50
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.

feat(training): improve the sour acidity rule (recall 0.57)

1 participant