QDpy
Loading...
Searching...
No Matches
mortar.py File Reference

MORTAR with bounded composition search and context-dependent component credit. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.mortar.MORTARRound
 Measured compositions and component credit from the most recent round. More...
class  qdpy.algorithms.mortar.MORTARStats
 Cumulative component proposals, composition calls, and archive admissions. More...
class  qdpy.algorithms.mortar._Node
class  qdpy.algorithms.mortar.MORTAR
 Use bounded evaluation trees to score and evolve components. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.mortar.mortar_skill_score (scores)
 Measure agreement between ordered skill levels and observed returns.
 qdpy.algorithms.mortar.mortar_credit (compositions, *, root=())
 Compute Constrained Importance Through Search (CITS) from explored combinations.

Detailed Description

MORTAR with bounded composition search and context-dependent component credit.

See also
https://doi.org/10.1145/3795095.3805100

Definition in file mortar.py.

Function Documentation

◆ mortar_credit()

qdpy.algorithms.mortar.mortar_credit ( compositions,
* ,
root = () )

Compute Constrained Importance Through Search (CITS) from explored combinations.

Parameters
compositionsMapping of component sets to measured scalar values in [-1, 1].
rootIterable identifying the root combination, excluded from aggregation.
Returns
Dictionary from components to mean restricted Shapley contributions.
Treat unmeasured subsets as zero-valued. The root can provide a baseline value.

A composition is an unordered set of hashable component IDs. Each
nonroot measured composition contributes one estimate for each member.
Iterating measured subsets yields the same sum as enumeration over
all subsets with nonzero values.

Definition at line 44 of file mortar.py.

◆ mortar_skill_score()

qdpy.algorithms.mortar.mortar_skill_score ( scores)

Measure agreement between ordered skill levels and observed returns.

Parameters
scoresFinite scores, ordered by expected skill from weakest to strongest.
Returns
Kendall tau-a, with tied outcomes contributing zero.
Count concordant and discordant pairs among a fixed panel of skill levels.

Definition at line 25 of file mortar.py.