factor_agent.zoo#

The Zoo: the factors a candidate must not rewrite, as graphs the Gate compares it with.

It holds one graph per output of every KunQuant factor of the reference set, of the known factors and of every factor the campaign has accepted so far, each entry tagged with its Kind; a known factor’s label says it is one, so a refusal names it as known. A reference or known factor without a KunQuant graph (a Polars factor, a view over a store) cannot be compared by graph; its names are kept in not_covered so the gap is visible, and only the correlation check of admission covers them. A view or wrapper that keeps its factor’s output names (NeutralizedFactor, StartClippedFactor, …) is compared by the graph of the factor it wraps (owner).

Classes

Zoo

The factors the Gate checks originality against.

ZooEntry

One factor: its name, its source, its Kind and its graph.

Functions

factor_label

How rejection reasons and metrics name a factor.

owner

The factor whose outputs factor shows: through every wrapper (config.factor) that keeps the names.