chemparseplot.parse.surrogate.cases#

Tidy per-case tables of a benchmark campaign.

Producer-independent: one row per case with the oracle calls and wall time of the search that reached a certified saddle, grouped in boards (benchmark sets).

.. versionadded:: 1.10.0

Module Contents#

Classes#

CaseRow

One case of a board.

CaseBoard

Cases of one benchmark set, in file order.

Functions#

_flag

_num

parse_cases_csv

Read board, case, label, search_calls, validation_calls, pipeline_wall_s, certified[, reference_pipeline_wall_s] [, pipeline_wall_sd]. pipeline_wall_sd is the sample standard deviation of repeated runs of the same case.

attach_baselines

Add board, case, method, calls, converged rows of a long CSV.

Data#

API#

chemparseplot.parse.surrogate.cases._TRUE#

None

chemparseplot.parse.surrogate.cases._flag(text: str) → bool[source]#
chemparseplot.parse.surrogate.cases._num(text: str | None) → float | None[source]#
class chemparseplot.parse.surrogate.cases.CaseRow[source]#

One case of a board.

case: str#

None

label: str#

None

search_calls: float#

None

validation_calls: float#

None

wall_s: float#

None

certified: bool#

None

reference_wall_s: float | None#

None

wall_sd: float | None#

None

class chemparseplot.parse.surrogate.cases.CaseBoard[source]#

Cases of one benchmark set, in file order.

name: str#

None

rows: list[chemparseplot.parse.surrogate.cases.CaseRow]#

‘field(…)’

baselines: dict[str, dict[str, tuple[float, bool]]]#

‘field(…)’

property n_certified: int#
chemparseplot.parse.surrogate.cases.parse_cases_csv(path: str | pathlib.Path) → list[chemparseplot.parse.surrogate.cases.CaseBoard][source]#

Read board, case, label, search_calls, validation_calls, pipeline_wall_s, certified[, reference_pipeline_wall_s] [, pipeline_wall_sd]. pipeline_wall_sd is the sample standard deviation of repeated runs of the same case.

Boards and rows keep the order of the file.

chemparseplot.parse.surrogate.cases.attach_baselines(boards: list[chemparseplot.parse.surrogate.cases.CaseBoard], path: str | pathlib.Path) → None[source]#

Add board, case, method, calls, converged rows of a long CSV.

A baseline row whose board or case the cases table does not hold is an error, so a mislabelled case cannot vanish silently.