easyiec.core.Query#

class easyiec.core.Query(kind, items, pairs=None, n_select=None, scale=(1.0, 10.0), line_t=None, goal=None, generation=0, meta=<factory>, id=<factory>)[source]#

Bases: object

A request for evaluation.

Attributes:
kindstr

One of KINDS.

itemslist of Individual

The candidates (for pairs the distinct individuals involved).

pairslist of (int, int), optional

Index pairs into items for kind="pairs".

n_selectint, optional

Number of candidates to choose for select (None: free choice, at least one).

scale(float, float)

Rating scale for rate.

line_tarray, optional

Positions in [0, 1] of the samples (items) along the line of a line query.

goalstr, optional

Natural-language goal shown to people and to LLM judges.

generationint

Strategy iteration that issued the query.

metadict

Strategy-specific annotations (e.g. {"role": "challenger"}).

n_decisions()[source]#

Elementary judgments a careful evaluator makes (a burden proxy).