r/learnmachinelearning • • 28d ago

Classifying text when you already know the labels: what a decision model is

if you've tried text classification with an llm, you know the routine. write a prompt, ask for json, parse what comes back, and handle the times it answers with something that isn't one of your labels.

a decision model works the other way round. you give it the text and the possible answers, and it scores each answer. you get back the winner, the probability of every option and a confidence value. it never generates text, so it can't answer outside your list.

there are three kinds of question: pick one option, the probability of yes, or a position on a scale like "can wait / soon / urgent".

nobodywho added these this week with laya, a 449 MB apache-2.0 model that runs on your own machine, so it's easy to try from python.

Repo: https://github.com/nobodywho-ooo/nobodywho
Docs: https://docs.nobodywho.ooo/python/decision-models

2 Upvotes

1 comment sorted by