Saltar para o conteúdo principal
Visão geral

Esta página está em inglês.

Probabilities in beta

How to use strike-1 probabilities while Strike is in beta.

Use strike-ai (abre num novo separador) (pip install strike-ai, from strike_ai import Client).

strike-1 returns a probability for every option. In production, yes/no, choice and score probabilities are temperature scaled with one temperature fitted on held-out data, and yes/no probabilities also get a prior shift fitted on held-out data. The temperature is not fitted per answer type. Use them to compare options and to decide when to hand off, not as forecasts or risk scores.

What to log

Log the probability you acted on and meta.model with each decision.

Python
from strike_ai import Client

client = Client()
result = client.decide(
    "WIN A FREE IPHONE!!! click now",
    {
        "spam": {
            "type": "noul",
            "instructions": "Is this spam?",
        }
    },
)
print(result["answers"]["spam"]["noul"], result.get("meta", {}).get("model"))

Do not show probabilities to end users as an accuracy claim. The Changelog lists changes to how probabilities are produced.

debias

Pass options={"debias": "permute"} on Client.decide when you want the API to average over several option orders (debias_passes, default 4) to reduce position bias. It is experimental, and each extra pass adds latency. On the hosted model, permute with debias_passes above 1 is rejected; leave debias off or at most one pass unless you know the server supports it.

Strike AI | Probabilities in beta