schemacast.bench.cli¶
schemacast-bench: cast the corpus and score it, score saved casts, or
compare two runs.
Attributes¶
Classes¶
Functions:¶
compare_command(report_a, report_b, row_a, row_b, pair_by_name, json_path)
¶
Read REPORT_B against REPORT_A, episode by episode, on the same corpus.
Source code in schemacast/bench/cli.py
corpus_of(root)
¶
The bundled corpus, or the one under root (cases/, schemas/).
Source code in schemacast/bench/cli.py
main()
¶
Benchmark text-to-graph casting against the bundled corpus.
Without a subcommand, run is meant: schemacast-bench --model NAME.
run(models, oracle, split, families, cases, corpus_root, replay, out_dir, concurrency)
¶
Cast and score the corpus; write JSON and Markdown reports.
Source code in schemacast/bench/cli.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |
score_command(casts, corpus_root, split, families, cases, row_label, out_dir)
¶
Score saved casts against the corpus, with no model.
Each CASTS file is a POST /cast response body, or
{"episodes": [...], "cast": <body>}. A corpus episode no file holds counts
as missed.
Source code in schemacast/bench/cli.py
select_cases(corpus, split, families, cases)
¶
Narrow corpus by split, family and case name; filters compose.