Configuration

Configure thresholds, weights, and behavior

Configuration Options

ParameterTypeDefaultDescription
iter_budgetint100Planning iterations (1-65535)
conf_minfloat0.25Minimum confidence threshold
coh_minfloat0.25Minimum coherence threshold
cons_minfloat0.25Minimum consistency threshold
weight_cfloat0.33Confidence weight
weight_hfloat0.33Coherence weight
weight_kfloat0.33Consistency weight

Setting Defaults

from thalosforge import ATA, ATAConfig

# Set defaults at initialization
ata = ATA(config=ATAConfig(
    iter_budget=200,
    conf_min=0.3,
    weight_c=0.5,
    weight_h=0.3,
    weight_k=0.2
))

Runtime Configuration

# Update defaults at runtime
ata.configure(
    iter_budget=150,
    conf_min=0.2
)

Per-Request Configuration

# Override for a single request
result = ata.decide(
    actions=[0, 1, 2],
    config=ATAConfig(iter_budget=50)
)

Tuning Guidelines