PrecomputedData

data class PrecomputedData(val averagePrecisionBySystem: Array<DoubleArray>, val topicColumnViewByTopic: Array<DoubleArray>, val fullSetMeanAPBySystem: DoubleArray, val numberOfSystems: Int, val numberOfTopics: Int, val systemIdsInOrder: List<String>, val systemIndexById: Map<String, Int>)

Immutable, shared, hot-path numeric bundle.

Built once at dataset load time and injected wherever evaluations happen (Best, Worst, and Average problems, as well as seeders).

Layout

  • Row-major matrix of AP scores per system and topic.

  • Column views to support delta evaluations.

  • Precomputed full-set means per system.

Indices & IDs

Safety

  • All arrays are owned by this object.

  • Do not mutate them after construction.

Constructors

Link copied to clipboard
constructor(averagePrecisionBySystem: Array<DoubleArray>, topicColumnViewByTopic: Array<DoubleArray>, fullSetMeanAPBySystem: DoubleArray, numberOfSystems: Int, numberOfTopics: Int, systemIdsInOrder: List<String>, systemIndexById: Map<String, Int>)

Properties

Link copied to clipboard

Row-major AP matrix: averagePrecisionBySystem[s][t] gives the AP of system s on topic t.

Link copied to clipboard

Mean AP of each system over all topics.

Link copied to clipboard

Total number of systems in the dataset.

Link copied to clipboard

Total number of topics in the dataset.

Link copied to clipboard

Deterministic list of system IDs, defining row order.

Link copied to clipboard

Map from system ID to its row index.

Link copied to clipboard

Column-major AP matrix: topicColumnViewByTopic[t][s] gives the AP of system s on topic t. Used for fast ± updates.