aggregation

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package aggregation implements the pluggable winning-option strategies used to combine the panel's final positions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfidenceWeightedVote

func ConfidenceWeightedVote(after map[string]*core.Answer, labels []string, weights map[string]float64) string

ConfidenceWeightedVote weights each panelist's vote by their confidence in their chosen option.

func ConfidenceWeightedWeightedVote

func ConfidenceWeightedWeightedVote(after map[string]*core.Answer, labels []string, weights map[string]float64) string

ConfidenceWeightedWeightedVote combines agent weights with confidence.

func MajorityVote

func MajorityVote(after map[string]*core.Answer, labels []string, weights map[string]float64) string

MajorityVote picks the option chosen by the most panelists.

func WeightedVote

func WeightedVote(after map[string]*core.Answer, labels []string, weights map[string]float64) string

WeightedVote weights each panelist's vote by their configured agent weight (default 1.0).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL