oh-my-knowledge 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/README.zh.md +8 -4
- package/dist/analysis/report-diagnostics.d.ts +8 -1
- package/dist/analysis/report-diagnostics.js +109 -1
- package/dist/assets/agent-skills/omk/references/commands.md +2 -2
- package/dist/authoring/evolver.d.ts +3 -14
- package/dist/authoring/evolver.js +1 -52
- package/dist/authoring/generator.d.ts +24 -0
- package/dist/authoring/generator.js +36 -8
- package/dist/cli/commands/eval/index.d.ts +1 -1
- package/dist/cli/commands/eval/index.js +50 -15
- package/dist/cli/commands/init.js +10 -7
- package/dist/cli/lib/cmd-flags.d.ts +0 -1
- package/dist/cli/lib/i18n-dict/init.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/init.js +14 -11
- package/dist/cli/lib/i18n-dict/run.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/run.js +6 -2
- package/dist/cli/lib/parse-run-config.d.ts +3 -1
- package/dist/cli/lib/parse-run-config.js +0 -2
- package/dist/eval-core/evaluation-job.d.ts +2 -2
- package/dist/eval-core/evaluation-job.js +2 -2
- package/dist/eval-core/evaluation-reporting.d.ts +0 -1
- package/dist/eval-core/evaluation-reporting.js +9 -41
- package/dist/eval-core/execution-strategy.js +3 -2
- package/dist/eval-core/holdout.d.ts +66 -0
- package/dist/eval-core/holdout.js +118 -0
- package/dist/eval-core/judge-independence.d.ts +28 -0
- package/dist/eval-core/judge-independence.js +29 -0
- package/dist/eval-core/verdict.d.ts +53 -2
- package/dist/eval-core/verdict.js +216 -16
- package/dist/eval-workflows/batch-evaluation-workflow.d.ts +1 -1
- package/dist/eval-workflows/batch-evaluation-workflow.js +1 -2
- package/dist/eval-workflows/evaluation-pipeline/report-finalize.d.ts +1 -5
- package/dist/eval-workflows/evaluation-pipeline/report-finalize.js +19 -8
- package/dist/eval-workflows/evaluation-pipeline/run-state.d.ts +2 -2
- package/dist/eval-workflows/evaluation-pipeline/run-state.js +2 -2
- package/dist/eval-workflows/evaluation-pipeline.d.ts +3 -2
- package/dist/eval-workflows/evaluation-pipeline.js +3 -4
- package/dist/eval-workflows/run-evaluation.d.ts +6 -4
- package/dist/eval-workflows/run-evaluation.js +8 -6
- package/dist/executors/claude-cli.js +5 -6
- package/dist/executors/claude-sdk.d.ts +5 -2
- package/dist/executors/claude-sdk.js +13 -8
- package/dist/executors/codex-cli.js +3 -4
- package/dist/executors/shared.d.ts +2 -0
- package/dist/executors/shared.js +15 -0
- package/dist/grading/assertions.js +6 -122
- package/dist/grading/gold-cli.js +1 -1
- package/dist/grading/human-gold.d.ts +5 -3
- package/dist/grading/human-gold.js +5 -3
- package/dist/grading/index.d.ts +4 -4
- package/dist/grading/judge.d.ts +6 -14
- package/dist/grading/judge.js +5 -88
- package/dist/inputs/eval-config.js +12 -2
- package/dist/managed/evidence.js +1 -2
- package/dist/managed/version-scores.js +1 -1
- package/dist/renderer/html-renderer.js +0 -9
- package/dist/renderer/layout.js +4 -4
- package/dist/renderer/summary.js +59 -4
- package/dist/shared/llm-prompts/debias-instructions.d.ts +4 -0
- package/dist/shared/llm-prompts/debias-instructions.js +44 -0
- package/dist/shared/llm-prompts/judge-prompts.d.ts +30 -0
- package/dist/shared/llm-prompts/judge-prompts.js +205 -0
- package/dist/shared/llm-prompts/registry.d.ts +27 -0
- package/dist/shared/llm-prompts/registry.js +69 -0
- package/dist/types/eval.d.ts +15 -8
- package/dist/types/judge.d.ts +1 -1
- package/dist/types/report.d.ts +50 -3
- package/package.json +1 -1
- package/dist/grading/debias-validate.d.ts +0 -83
- package/dist/grading/debias-validate.js +0 -176
package/README.md
CHANGED
|
@@ -23,11 +23,15 @@ omk init demo && cd demo
|
|
|
23
23
|
omk eval --control code-review-v1 --treatment code-review-v2
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Runs out of the box — no edits needed first. `omk init` scaffolds two skill variants and three sample cases; `omk eval` runs the controlled A/B and opens an HTML report with a one-line verdict in about five minutes. Once it runs, swap in your own skills and cases.
|
|
27
|
+
|
|
28
|
+
Prerequisite: the default executor and judge use the `claude` CLI — install and log in first (see [Requirements](#requirements)); to use another model or run offline (no API key) see [executors](docs/reference/executors.md).
|
|
29
|
+
|
|
30
|
+
> The first run has only 3 cases, so the verdict will usually be `UNDERPOWERED` (insufficient data) — that's a normal starting point, not an error; grow to ~20+ cases before trusting a ship/no-ship call.
|
|
27
31
|
|
|
28
32
|
> The CLI notifies you when a newer version is available (at most once per 20h); set `OMK_SKIP_UPDATE_CHECK=1` to silence it permanently.
|
|
29
33
|
|
|
30
|
-
Walkthrough: [5-minute quickstart guide](docs/quickstart-skill-eval.md) (recommended for first-time users).
|
|
34
|
+
Walkthrough: [5-minute quickstart guide](docs/quickstart-skill-eval.md) (recommended for first-time users). More runnable examples (A/B, offline executor, batch, evolve, agent, RAG) live in the repo's [example gallery](https://github.com/lizhiyao/oh-my-knowledge/tree/main/examples).
|
|
31
35
|
|
|
32
36
|
Deeper: [who omk is for](docs/explanation/who-omk-is-for.md) · [CLI reference](docs/reference/cli.md) · [how it works](docs/explanation/architecture.md) · [eval sample format](docs/reference/eval-sample-format.md) · [executors](docs/reference/executors.md) · [artifact layout](docs/reference/artifact-layout.md)
|
|
33
37
|
|
|
@@ -105,8 +109,7 @@ RAG-specific evals: see RAGAS (separate niche, complementary to omk). Full compa
|
|
|
105
109
|
| **Git & remote sources** | install / eval from a local git ref or a remote git URL (`--git-url`); directory-skills run in a content-addressed **isolated copy** so `references/` assets are real measured input, not just `SKILL.md` |
|
|
106
110
|
| **Evidence-gated management** | `omk install` registers a managed record; `omk eval` auto-writes evidence bound by content fingerprint, moving a skill `installed → measurable`; `omk list` surfaces each managed skill's status (installed / measurable / promoted / stale); `omk promote` accepts a version once its evidence passes the gate (default PROGRESS only); `omk rollback` revokes that acceptance, returning the skill to `measurable`. [spec →](docs/specs/evidence-gated-management.md) |
|
|
107
111
|
| **Sample design science** | sample schema with `capability` / `difficulty` / `construct` / `provenance` metadata (HF Dataset Cards style); studio surfaces coverage breakdown plus `rubric_clarity_low` / `capability_thin` flags. [docs/specs/sample-design-spec.md](docs/specs/sample-design-spec.md) |
|
|
108
|
-
| **Multi-judge ensemble** | `--judge-models claude:opus,openai:gpt-4o` cross-vendor scoring + agreement metrics |
|
|
109
|
-
| **Blind A/B** | `--blind` hides variant names; HTML report has a reveal button |
|
|
112
|
+
| **Multi-judge ensemble** | `--judge-models claude:opus,openai-api:gpt-4o` cross-vendor scoring + agreement metrics |
|
|
110
113
|
| **Multi-run variance** | `--repeat N` repeats the eval and computes mean / SD / CI / t-test |
|
|
111
114
|
| **MCP URL fetching** | pull content from private-doc URLs via an MCP server (SSO-protected knowledge bases, etc.) |
|
|
112
115
|
| **Auto analysis** | detects low-discrimination assertions, flat scores, all-pass / all-fail, expensive samples |
|
|
@@ -123,6 +126,7 @@ The full docs are published at **[oh-my-knowledge.pages.dev](https://oh-my-knowl
|
|
|
123
126
|
- **[Executors](docs/reference/executors.md)** & **[artifact layout](docs/reference/artifact-layout.md)** — built-in / custom executors; how `variant` resolves to an artifact + runtime context
|
|
124
127
|
- **[How-to guides](docs/guides/agent-eval.md)** — [evaluate an agent](docs/guides/agent-eval.md) (project runtime context) and [use non-Claude models](docs/guides/non-claude-models.md) (GLM / Qwen / DeepSeek / Moonshot / Ollama)
|
|
125
128
|
- **[Quickstart](docs/quickstart-skill-eval.md)** — first-time five-minute walkthrough
|
|
129
|
+
- **[Example gallery](https://github.com/lizhiyao/oh-my-knowledge/tree/main/examples)** — a set of runnable examples in the repo, arranged simplest-to-richest
|
|
126
130
|
- **[Sample design spec](docs/specs/sample-design-spec.md)** — capability / construct / provenance metadata; industry-gap mapping
|
|
127
131
|
- **[Statistical rigor](docs/explanation/statistical-rigor.md)** — why bootstrap CI / α / length-debias / saturation matter
|
|
128
132
|
- **[Comparison with 7 tools](docs/reference/comparison.md)** — 25+ dimensions across promptfoo / DeepEval / RAGAS / OpenAI Evals / LangSmith / lm-eval-harness / inspect-ai
|
package/README.zh.md
CHANGED
|
@@ -23,11 +23,15 @@ omk init demo && cd demo
|
|
|
23
23
|
omk eval --control code-review-v1 --treatment code-review-v2
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
开箱即跑:`omk init` 脚手架好两版 skill 和三条评测用例,不用先改任何文件,`omk eval` 跑控制变量 A/B,约 5 分钟出 HTML 报告 + 一行 verdict;跑通后再把 skill 和用例换成你自己的。
|
|
27
|
+
|
|
28
|
+
前置:默认执行器与评委用 `claude` CLI,需先安装并登录(见[系统要求](#系统要求));想用别的模型或离线跑(无需 API key)见[执行器](docs/zh/reference/executors.md)。
|
|
29
|
+
|
|
30
|
+
> 首跑只有 3 条用例,verdict 多半是「数据不足(UNDERPOWERED)」——这是正常起点而非出错;把用例加到约 20 条以上,再看「可发布」结论。
|
|
27
31
|
|
|
28
32
|
> 命令行有新版本时会自动提示(每 20 小时最多一次);想永久关闭该提醒,设环境变量 `OMK_SKIP_UPDATE_CHECK=1` 即可。
|
|
29
33
|
|
|
30
|
-
手把手教程:[5 分钟快速上手](docs/zh/quickstart-skill-eval.md)
|
|
34
|
+
手把手教程:[5 分钟快速上手](docs/zh/quickstart-skill-eval.md)(推荐第一次跑评测的用户)。更多可跑示例(A/B、离线执行器、batch、evolve、agent、RAG)见仓库的[示例画廊](https://github.com/lizhiyao/oh-my-knowledge/tree/main/examples)。
|
|
31
35
|
|
|
32
36
|
深入:[为谁、解决什么](docs/zh/explanation/who-omk-is-for.md) · [CLI 参考](docs/zh/reference/cli.md) · [工作原理](docs/zh/explanation/architecture.md) · [评测用例格式](docs/zh/reference/eval-sample-format.md) · [执行器](docs/zh/reference/executors.md) · [artifact 布局](docs/zh/reference/artifact-layout.md)
|
|
33
37
|
|
|
@@ -105,8 +109,7 @@ RAG 专项评测请看 RAGAS(独立 niche,跟 omk 互补)。完整对比
|
|
|
105
109
|
| **Git / 远端源** | install / eval 支持本地 git ref 或远端 git URL(`--git-url`);目录-skill 在内容寻址**隔离副本**里执行,`references/` 资产是真实测量输入,不只是 `SKILL.md` |
|
|
106
110
|
| **证据门控管理** | `omk install` 登记受管记录;`omk eval` 按内容指纹自动写入证据,把 skill 从 `installed` 推到 `measurable`;`omk list` 查看各受管 skill 的状态(installed / measurable / promoted / stale);`omk promote` 在证据过门禁(默认仅 PROGRESS)后把该版本接受为当前版本;`omk rollback` 撤销这次接受,让 skill 回到 `measurable`。[规范 →](docs/zh/specs/evidence-gated-management.md) |
|
|
107
111
|
| **用例设计科学性** | Sample schema 加 `capability` / `difficulty` / `construct` / `provenance` 元数据字段(HF Dataset Cards 风),studio 输出 coverage 分桶 + `rubric_clarity_low` / `capability_thin` issue。[docs/zh/specs/sample-design-spec.md](docs/zh/specs/sample-design-spec.md) |
|
|
108
|
-
| **多评委 ensemble** | `--judge-models claude:opus,openai:gpt-4o` 跨厂商评分 + agreement 度量 |
|
|
109
|
-
| **盲测 A/B** | `--blind` 隐藏变体名称,HTML 报告有揭晓按钮 |
|
|
112
|
+
| **多评委 ensemble** | `--judge-models claude:opus,openai-api:gpt-4o` 跨厂商评分 + agreement 度量 |
|
|
110
113
|
| **多轮方差分析** | `--repeat N` 重复 N 次,计算均值/标准差/置信区间/t 检验 |
|
|
111
114
|
| **MCP URL 获取** | 通过 MCP Server 获取私有文档 URL 内容(SSO 保护的知识库等) |
|
|
112
115
|
| **自动分析** | 检测低区分度断言、均匀分数、全通过/全失败、高成本用例 |
|
|
@@ -123,6 +126,7 @@ RAG 专项评测请看 RAGAS(独立 niche,跟 omk 互补)。完整对比
|
|
|
123
126
|
- **[执行器](docs/zh/reference/executors.md)** & **[artifact 布局](docs/zh/reference/artifact-layout.md)** —— 内置 / 自定义执行器;variant 如何解析为 artifact + runtime context
|
|
124
127
|
- **[操作指南](docs/zh/guides/agent-eval.md)** —— [评测 agent](docs/zh/guides/agent-eval.md)(项目 runtime context)与[使用非 Claude 模型](docs/zh/guides/non-claude-models.md)(GLM / 通义 / DeepSeek / Moonshot / Ollama)
|
|
125
128
|
- **[快速上手](docs/zh/quickstart-skill-eval.md)** —— 第一次跑评测的 5 分钟教程
|
|
129
|
+
- **[示例画廊](https://github.com/lizhiyao/oh-my-knowledge/tree/main/examples)** —— 仓库里一组可直接跑的示例,按由简到全排成上手路径
|
|
126
130
|
- **[用例设计规范](docs/zh/specs/sample-design-spec.md)** —— capability / construct / provenance 元数据;行业 gap 映射
|
|
127
131
|
- **[统计严谨性](docs/zh/explanation/statistical-rigor.md)** —— 为什么 Bootstrap CI / α / 长度去偏 / 饱和曲线重要
|
|
128
132
|
- **[7 工具对比](docs/zh/reference/comparison.md)** —— promptfoo / DeepEval / RAGAS / OpenAI Evals / LangSmith / lm-eval-harness / inspect-ai 等 25+ 维度横评
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-analysis: detect patterns and generate insights from evaluation results.
|
|
3
3
|
*/
|
|
4
|
-
import type { Report, AnalysisResult, Sample, SampleQualityAggregate, Lang } from '../types/index.js';
|
|
4
|
+
import type { Report, AnalysisResult, Sample, SampleQualityAggregate, Representativeness, Lang } from '../types/index.js';
|
|
5
5
|
/** opts for `analyzeResults`. Optional because most older callers don't have
|
|
6
6
|
* samples in scope; new callers (evaluation-pipeline / evolver) pass them in to
|
|
7
7
|
* populate `analysis.sampleQuality`. */
|
|
@@ -30,4 +30,11 @@ export declare function analyzeResults(report: Report, opts?: AnalyzeResultsOpti
|
|
|
30
30
|
* participate in grading / judge / verdict. See docs/specs/sample-design-spec.md.
|
|
31
31
|
*/
|
|
32
32
|
export declare function buildSampleQualityAggregate(samples: Sample[]): SampleQualityAggregate;
|
|
33
|
+
/**
|
|
34
|
+
* Relative-balance / skew of the sample set. Pure function of the aggregate's
|
|
35
|
+
* distributions — no external "expected" denominator exists (capabilities are
|
|
36
|
+
* free-form), so it reports concentration (dominant bucket share) + the dominant
|
|
37
|
+
* label per dimension, not absolute coverage. Diagnostic only.
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildRepresentativeness(aggregate: SampleQualityAggregate): Representativeness;
|
|
33
40
|
export declare function generateAnalysisSummary(report: Report, lang?: Lang): string | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Auto-analysis: detect patterns and generate insights from evaluation results.
|
|
3
3
|
*/
|
|
4
4
|
import { normalizeCapability } from './sample-diagnostics.js';
|
|
5
|
+
import { analyzeJudgeIndependence } from '../eval-core/judge-independence.js';
|
|
5
6
|
/**
|
|
6
7
|
* Analyze an evaluation report and produce structured insights.
|
|
7
8
|
*/
|
|
@@ -15,6 +16,10 @@ export function analyzeResults(report, opts = {}) {
|
|
|
15
16
|
const sampleQuality = opts.samples
|
|
16
17
|
? buildSampleQualityAggregate(opts.samples)
|
|
17
18
|
: undefined;
|
|
19
|
+
// 评委独立性对**单变体**报告同样适用(SOLO 只有绝对分、没有 A/B 差值去抵消自我偏好,
|
|
20
|
+
// 反而更该报),故放在 variants<2 早退之前;仅 results 为空(dry-run)时不评估。
|
|
21
|
+
if (results.length > 0)
|
|
22
|
+
detectJudgeIndependence(report, insights);
|
|
18
23
|
if (results.length === 0 || variants.length < 2) {
|
|
19
24
|
return { insights, ...(sampleQuality && { sampleQuality }) };
|
|
20
25
|
}
|
|
@@ -38,11 +43,33 @@ export function analyzeResults(report, opts = {}) {
|
|
|
38
43
|
detectAgentAssertionDiscrimination(results, variants, insights);
|
|
39
44
|
// 10. Suggest --repeat when score variance is high and no repeat data
|
|
40
45
|
detectNeedRepeat(report, results, variants, insights);
|
|
46
|
+
// 11. Judge independence — 已在 variants<2 早退前调过(单变体也适用),此处不重复。
|
|
41
47
|
return {
|
|
42
48
|
insights,
|
|
43
49
|
...(sampleQuality && { sampleQuality }),
|
|
44
50
|
};
|
|
45
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* 评委独立性诊断:同厂商评委(自我偏好敞口)/ 单厂商 ensemble(一致性不反驳共有偏置)。
|
|
54
|
+
* 判定走单一来源 `analyzeJudgeIndependence`;挂了 gold 校准则软化为 info。
|
|
55
|
+
*/
|
|
56
|
+
function detectJudgeIndependence(report, insights) {
|
|
57
|
+
const ind = analyzeJudgeIndependence(report);
|
|
58
|
+
if (ind.sameVendorJudge) {
|
|
59
|
+
insights.push({
|
|
60
|
+
type: 'judge_self_preference',
|
|
61
|
+
severity: ind.goldCalibrated ? 'info' : 'warning',
|
|
62
|
+
details: { judgeVendors: ind.judgeVendors, outputVendors: ind.outputVendors, goldCalibrated: ind.goldCalibrated },
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
if (ind.singleVendorEnsemble) {
|
|
66
|
+
insights.push({
|
|
67
|
+
type: 'single_vendor_ensemble',
|
|
68
|
+
severity: ind.goldCalibrated ? 'info' : 'warning',
|
|
69
|
+
details: { judgeVendors: ind.judgeVendors, goldCalibrated: ind.goldCalibrated },
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
46
73
|
/**
|
|
47
74
|
* Build sample design science aggregate from sample metadata.
|
|
48
75
|
*
|
|
@@ -117,7 +144,7 @@ export function buildSampleQualityAggregate(samples) {
|
|
|
117
144
|
rubricCount++;
|
|
118
145
|
}
|
|
119
146
|
}
|
|
120
|
-
|
|
147
|
+
const aggregate = {
|
|
121
148
|
capabilityCoverage,
|
|
122
149
|
difficultyDistribution,
|
|
123
150
|
constructDistribution,
|
|
@@ -128,6 +155,56 @@ export function buildSampleQualityAggregate(samples) {
|
|
|
128
155
|
sampleCountWithConstruct: withConstruct,
|
|
129
156
|
sampleCountWithProvenance: withProvenance,
|
|
130
157
|
};
|
|
158
|
+
aggregate.representativeness = buildRepresentativeness(aggregate);
|
|
159
|
+
return aggregate;
|
|
160
|
+
}
|
|
161
|
+
/** Largest entry of a `label → count` map, as `[label, share]` over a given total.
|
|
162
|
+
* Returns `[undefined, 0]` when the map is empty or total ≤ 0. */
|
|
163
|
+
function dominantShare(counts, total) {
|
|
164
|
+
let label;
|
|
165
|
+
let max = 0;
|
|
166
|
+
for (const [k, v] of Object.entries(counts)) {
|
|
167
|
+
if (v > max) {
|
|
168
|
+
max = v;
|
|
169
|
+
label = k;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return total > 0 ? [label, max / total] : [undefined, 0];
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Relative-balance / skew of the sample set. Pure function of the aggregate's
|
|
176
|
+
* distributions — no external "expected" denominator exists (capabilities are
|
|
177
|
+
* free-form), so it reports concentration (dominant bucket share) + the dominant
|
|
178
|
+
* label per dimension, not absolute coverage. Diagnostic only.
|
|
179
|
+
*/
|
|
180
|
+
export function buildRepresentativeness(aggregate) {
|
|
181
|
+
const capTotal = Object.values(aggregate.capabilityCoverage).reduce((a, b) => a + b, 0);
|
|
182
|
+
const [dominantCapability, capabilityConcentration] = dominantShare(aggregate.capabilityCoverage, capTotal);
|
|
183
|
+
// difficulty / construct concentration over *declared* samples only — `unspecified`
|
|
184
|
+
// is "didn't say", not a bucket the set is skewed toward.
|
|
185
|
+
const declaredDifficulty = {
|
|
186
|
+
easy: aggregate.difficultyDistribution.easy,
|
|
187
|
+
medium: aggregate.difficultyDistribution.medium,
|
|
188
|
+
hard: aggregate.difficultyDistribution.hard,
|
|
189
|
+
};
|
|
190
|
+
const diffTotal = declaredDifficulty.easy + declaredDifficulty.medium + declaredDifficulty.hard;
|
|
191
|
+
const [dominantDifficulty, difficultyConcentration] = dominantShare(declaredDifficulty, diffTotal);
|
|
192
|
+
const declaredConstruct = {};
|
|
193
|
+
for (const [k, v] of Object.entries(aggregate.constructDistribution)) {
|
|
194
|
+
if (k !== 'unspecified')
|
|
195
|
+
declaredConstruct[k] = v;
|
|
196
|
+
}
|
|
197
|
+
const consTotal = Object.values(declaredConstruct).reduce((a, b) => a + b, 0);
|
|
198
|
+
const [dominantConstruct, constructConcentration] = dominantShare(declaredConstruct, consTotal);
|
|
199
|
+
return {
|
|
200
|
+
capabilityCount: Object.keys(aggregate.capabilityCoverage).length,
|
|
201
|
+
capabilityConcentration,
|
|
202
|
+
...(dominantCapability ? { dominantCapability } : {}),
|
|
203
|
+
difficultyConcentration,
|
|
204
|
+
...(dominantDifficulty ? { dominantDifficulty: dominantDifficulty } : {}),
|
|
205
|
+
constructConcentration,
|
|
206
|
+
...(dominantConstruct ? { dominantConstruct } : {}),
|
|
207
|
+
};
|
|
131
208
|
}
|
|
132
209
|
export function generateAnalysisSummary(report, lang = 'zh') {
|
|
133
210
|
const variants = report.meta?.variants || [];
|
|
@@ -356,12 +433,43 @@ export function generateAnalysisSummary(report, lang = 'zh') {
|
|
|
356
433
|
? `【综合洞察】${synthesis.join(';')}。`
|
|
357
434
|
: `【Synthesis】${synthesis.join('; ')}.`);
|
|
358
435
|
}
|
|
436
|
+
// ── Sample-composition skew ── flags over-representation ("70% are easy") so the
|
|
437
|
+
// reader knows the set may not be representative of the real task distribution.
|
|
438
|
+
// Diagnostic only — never gates the verdict. N≥10 guard mirrors capability_thin.
|
|
439
|
+
const rep = report.analysis?.sampleQuality?.representativeness;
|
|
440
|
+
const sampleCount = report.meta?.sampleCount ?? 0;
|
|
441
|
+
if (rep && sampleCount >= 10) {
|
|
442
|
+
const skews = [];
|
|
443
|
+
if (rep.difficultyConcentration > SKEW_CONCENTRATION_BAND && rep.dominantDifficulty) {
|
|
444
|
+
skews.push(lang === 'zh'
|
|
445
|
+
? `难度 ${(rep.difficultyConcentration * 100).toFixed(0)}% 集中在 ${rep.dominantDifficulty}`
|
|
446
|
+
: `${(rep.difficultyConcentration * 100).toFixed(0)}% of declared difficulty is ${rep.dominantDifficulty}`);
|
|
447
|
+
}
|
|
448
|
+
if (rep.capabilityConcentration > SKEW_CONCENTRATION_BAND && rep.dominantCapability) {
|
|
449
|
+
skews.push(lang === 'zh'
|
|
450
|
+
? `能力标签 ${(rep.capabilityConcentration * 100).toFixed(0)}% 集中在 ${rep.dominantCapability}`
|
|
451
|
+
: `${(rep.capabilityConcentration * 100).toFixed(0)}% of capability tags are ${rep.dominantCapability}`);
|
|
452
|
+
}
|
|
453
|
+
if (rep.constructConcentration > SKEW_CONCENTRATION_BAND && rep.dominantConstruct) {
|
|
454
|
+
skews.push(lang === 'zh'
|
|
455
|
+
? `construct ${(rep.constructConcentration * 100).toFixed(0)}% 集中在 ${rep.dominantConstruct}`
|
|
456
|
+
: `${(rep.constructConcentration * 100).toFixed(0)}% of declared construct is ${rep.dominantConstruct}`);
|
|
457
|
+
}
|
|
458
|
+
if (skews.length > 0) {
|
|
459
|
+
lines.push(lang === 'zh'
|
|
460
|
+
? `【用例构成】偏斜:${skews.join(';')}——补充其它维度可提升代表性(构成提示,不影响 verdict)。`
|
|
461
|
+
: `【Sample composition】Skewed: ${skews.join('; ')} — adding other dimensions improves representativeness (informational; does not affect the verdict).`);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
359
464
|
// Caveats and recommendations are handled by the issues table below,
|
|
360
465
|
// so the summary focuses only on verdict + differentiators + synthesis.
|
|
361
466
|
if (lines.length === 0)
|
|
362
467
|
return undefined;
|
|
363
468
|
return lines.join('\n');
|
|
364
469
|
}
|
|
470
|
+
/** Dominant-bucket share above which the sample set is flagged as skewed. Pragmatic
|
|
471
|
+
* default — 60% of declared samples in one bucket is a clear over-representation. */
|
|
472
|
+
const SKEW_CONCENTRATION_BAND = 0.6;
|
|
365
473
|
const AGENT_ASSERTION_TYPES = new Set([
|
|
366
474
|
'tools_called',
|
|
367
475
|
'tools_not_called',
|
|
@@ -67,7 +67,6 @@ omk eval [flags]
|
|
|
67
67
|
**Flags:**
|
|
68
68
|
|
|
69
69
|
- `--batch` `boolean`:batch 模式:baseline vs 每个 skill
|
|
70
|
-
- `--blind` `boolean`:judge blind 模式
|
|
71
70
|
- `--bootstrap` `boolean`:加 bootstrap CI
|
|
72
71
|
- `--bootstrap-samples` `option`:bootstrap 重采样次数,默认 1000
|
|
73
72
|
- `--budget-per-sample-ms` `option`:单 sample 时长上限 ms(必须 > 0,不传则无上限)
|
|
@@ -82,7 +81,8 @@ omk eval [flags]
|
|
|
82
81
|
- `--executor` `option`:执行器:claude / claude-sdk / codex / codex-sdk / openai-api / gemini / 自定义命令(默认 claude)。
|
|
83
82
|
- `--global` `boolean`:报告写全局 ~/.oh-my-knowledge/reports,而非项目 .omk/
|
|
84
83
|
- `--gold-dir` `option`:gold dataset 目录
|
|
85
|
-
- `--
|
|
84
|
+
- `--holdout-ratio` `option`:留出比例 0-1(如 0.3);切出 holdout 子集,对比 train/holdout 综合分检测过拟合
|
|
85
|
+
- `--judge-models` `option`:评委配置,格式 executor:model[,...],例 claude:haiku 或 claude:opus,openai-api:gpt-4o(≥ 2 个 = ensemble)。默认 <executor>:haiku。
|
|
86
86
|
- `--judge-repeat` `option`:每个 dim 评 N 次
|
|
87
87
|
- `--lang` `option` (默认 `zh`):输出语言 zh|en,优先级 CLI > OMK_LANG env > zh。
|
|
88
88
|
- `--layered-stats` `boolean`:输出分层统计
|
|
@@ -16,14 +16,11 @@ interface WeakSample {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
export declare function extractWeakSamples(report: Report, variantKey: string, count?: number, sampleIdFilter?: Set<string>): WeakSample[];
|
|
19
|
-
/** A train / holdout partition of a sample set. */
|
|
20
|
-
interface HoldoutSplit {
|
|
21
|
-
trainIds: Set<string>;
|
|
22
|
-
holdoutIds: Set<string>;
|
|
23
|
-
}
|
|
24
19
|
/** A train / val / test partition. `val` drives the accept decision; `test` is
|
|
25
20
|
* locked — never seen during the loop, read once at the end for an unbiased
|
|
26
|
-
* generalization score.
|
|
21
|
+
* generalization score. Two-way holdout (`splitHoldout`), the stride picker
|
|
22
|
+
* (`pickByStride`), `MIN_HOLDOUT_SUBSET`, and `subsetCompositeScore` live in
|
|
23
|
+
* `src/eval-core/holdout.ts` so `omk eval --holdout-ratio` reuses them. */
|
|
27
24
|
interface TrainValTestSplit {
|
|
28
25
|
trainIds: Set<string>;
|
|
29
26
|
valIds: Set<string>;
|
|
@@ -34,14 +31,6 @@ interface TrainValTestSplit {
|
|
|
34
31
|
* every candidate. Under that floor evolve degrades to the point-estimate accept
|
|
35
32
|
* and flags `gate.underpowered`. */
|
|
36
33
|
export declare const MIN_GATE_SAMPLES = 8;
|
|
37
|
-
/**
|
|
38
|
-
* Deterministically split sample ids into train / holdout by `ratio` (fraction
|
|
39
|
-
* held out). Holdout members are picked at an even stride so the partition is
|
|
40
|
-
* representative of the ordering, and the split is stable across rounds and runs
|
|
41
|
-
* (no RNG). Returns null when ratio ≤ 0 or either side would drop below
|
|
42
|
-
* MIN_HOLDOUT_SUBSET — the caller then scores on the full set.
|
|
43
|
-
*/
|
|
44
|
-
export declare function splitHoldout(sampleIds: string[], ratio: number): HoldoutSplit | null;
|
|
45
34
|
/**
|
|
46
35
|
* Deterministically split sample ids into train / val / test. `val` is carved
|
|
47
36
|
* first at an even stride; `test` is carved at an even stride over what remains,
|
|
@@ -8,7 +8,7 @@ import { projectReportsDir, globalReportsDir } from '../eval-core/measurement-di
|
|
|
8
8
|
import { analyzeResults } from '../analysis/report-diagnostics.js';
|
|
9
9
|
import { loadSamples } from '../inputs/load-samples.js';
|
|
10
10
|
import { hashArtifactSource } from '../inputs/content-hash.js';
|
|
11
|
-
import {
|
|
11
|
+
import { MIN_HOLDOUT_SUBSET, pickByStride, splitHoldout, subsetCompositeScore } from '../eval-core/holdout.js';
|
|
12
12
|
import { bootstrapDiffCI, DEFAULT_BOOTSTRAP_ALPHA, DEFAULT_BOOTSTRAP_SAMPLES } from '../eval-core/bootstrap.js';
|
|
13
13
|
import { fixSamples } from './sample-fixer.js';
|
|
14
14
|
const IMPROVE_SYSTEM_PROMPT = `你是一个 AI 提示词改进专家。你的任务是分析评测结果中的薄弱环节,针对性地改进 skill(系统提示词),使其在评测中获得更高的分数。
|
|
@@ -165,43 +165,11 @@ export function extractWeakSamples(report, variantKey, count = 5, sampleIdFilter
|
|
|
165
165
|
.sort((a, b) => a.compositeScore - b.compositeScore)
|
|
166
166
|
.slice(0, count);
|
|
167
167
|
}
|
|
168
|
-
/** Below this many samples on any side, a split is too small to be meaningful —
|
|
169
|
-
* evolve falls back to full-set scoring and warns. */
|
|
170
|
-
const MIN_HOLDOUT_SUBSET = 3;
|
|
171
168
|
/** Below this many decision (val) samples the bootstrap diff CI almost never
|
|
172
169
|
* excludes 0 for realistic effect sizes, so the significance gate would reject
|
|
173
170
|
* every candidate. Under that floor evolve degrades to the point-estimate accept
|
|
174
171
|
* and flags `gate.underpowered`. */
|
|
175
172
|
export const MIN_GATE_SAMPLES = 8;
|
|
176
|
-
/** Pick `count` ids at an even stride across `ids` (deterministic, no RNG) so the
|
|
177
|
-
* picked subset is representative of the ordering and stable across rounds/runs. */
|
|
178
|
-
function pickByStride(ids, count) {
|
|
179
|
-
const picked = new Set();
|
|
180
|
-
if (count <= 0)
|
|
181
|
-
return picked;
|
|
182
|
-
const stride = ids.length / count;
|
|
183
|
-
for (let k = 0; k < count; k++)
|
|
184
|
-
picked.add(ids[Math.floor(k * stride)]);
|
|
185
|
-
return picked;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Deterministically split sample ids into train / holdout by `ratio` (fraction
|
|
189
|
-
* held out). Holdout members are picked at an even stride so the partition is
|
|
190
|
-
* representative of the ordering, and the split is stable across rounds and runs
|
|
191
|
-
* (no RNG). Returns null when ratio ≤ 0 or either side would drop below
|
|
192
|
-
* MIN_HOLDOUT_SUBSET — the caller then scores on the full set.
|
|
193
|
-
*/
|
|
194
|
-
export function splitHoldout(sampleIds, ratio) {
|
|
195
|
-
if (!(ratio > 0) || sampleIds.length === 0)
|
|
196
|
-
return null;
|
|
197
|
-
const holdoutCount = Math.round(sampleIds.length * ratio);
|
|
198
|
-
const trainCount = sampleIds.length - holdoutCount;
|
|
199
|
-
if (holdoutCount < MIN_HOLDOUT_SUBSET || trainCount < MIN_HOLDOUT_SUBSET)
|
|
200
|
-
return null;
|
|
201
|
-
const holdoutIds = pickByStride(sampleIds, holdoutCount);
|
|
202
|
-
const trainIds = new Set(sampleIds.filter((id) => !holdoutIds.has(id)));
|
|
203
|
-
return { trainIds, holdoutIds };
|
|
204
|
-
}
|
|
205
173
|
/**
|
|
206
174
|
* Deterministically split sample ids into train / val / test. `val` is carved
|
|
207
175
|
* first at an even stride; `test` is carved at an even stride over what remains,
|
|
@@ -223,25 +191,6 @@ export function splitTrainValTest(sampleIds, valRatio, testRatio) {
|
|
|
223
191
|
const trainIds = new Set(sampleIds.filter((id) => !valIds.has(id) && !testIds.has(id)));
|
|
224
192
|
return { trainIds, valIds, testIds };
|
|
225
193
|
}
|
|
226
|
-
/**
|
|
227
|
-
* Mean composite over the subset of a report's results whose sample_id is in
|
|
228
|
-
* `ids`, using the same aggregation as the full-run summary
|
|
229
|
-
* (`buildVariantSummary`) so train / holdout scores stay comparable to the
|
|
230
|
-
* headline composite. Returns 0 when the subset has no scorable entries.
|
|
231
|
-
*/
|
|
232
|
-
function subsetCompositeScore(report, variantKey, ids) {
|
|
233
|
-
const entries = [];
|
|
234
|
-
for (const r of report.results) {
|
|
235
|
-
if (!ids.has(r.sample_id))
|
|
236
|
-
continue;
|
|
237
|
-
const v = r.variants[variantKey];
|
|
238
|
-
if (v)
|
|
239
|
-
entries.push(v);
|
|
240
|
-
}
|
|
241
|
-
if (entries.length === 0)
|
|
242
|
-
return 0;
|
|
243
|
-
return buildVariantSummary(entries).avgCompositeScore ?? 0;
|
|
244
|
-
}
|
|
245
194
|
/**
|
|
246
195
|
* Per-sample composite scores over the subset of a report's results whose
|
|
247
196
|
* sample_id is in `ids`, in result order. Feeds `bootstrapDiffCI` for the
|
|
@@ -31,6 +31,30 @@ export declare function generateSamples({ skillContent, count, model, executorNa
|
|
|
31
31
|
costUSD: number;
|
|
32
32
|
}>;
|
|
33
33
|
type TraceSignalItem = Pick<ObservationInboxItem, 'skillName' | 'signalType' | 'signalSubtype' | 'severity' | 'evidence' | 'messageWindow' | 'occurrences'>;
|
|
34
|
+
export interface StratifiedTraceSignal extends TraceSignalItem {
|
|
35
|
+
/** Share of total occurrences across all signals (0-1) — drives proportional
|
|
36
|
+
* sample allocation in the prompt. */
|
|
37
|
+
weight: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Rank trace signals by frequency and annotate each with its share of the total
|
|
41
|
+
* occurrences. Lets `omk sample --from-traces` allocate samples *proportional to
|
|
42
|
+
* how often a failure actually happened* instead of a flat "1-2 per signal" — a
|
|
43
|
+
* failure seen 100× deserves more regression coverage than one seen twice.
|
|
44
|
+
*
|
|
45
|
+
* Deliberately does NOT re-merge signals here. The observation inbox is the only
|
|
46
|
+
* source of these items and already aggregates `occurrences` by the FULL identity
|
|
47
|
+
* — `skillName + cwd + sourceKind + signalType + signalSubtype + evidence`
|
|
48
|
+
* (`inbox.ts` `keyFor`). Re-merging on a narrower key (e.g. type+subtype+evidence)
|
|
49
|
+
* would fold *different skills / cwd* with the same failure shape into one entry,
|
|
50
|
+
* mis-attributing the summed occurrences to the first skill and skewing the
|
|
51
|
+
* regenerated distribution. So we trust the upstream dedup and only sort + weight.
|
|
52
|
+
*
|
|
53
|
+
* Does NOT fix the underlying selection bias (traces only capture *failures*),
|
|
54
|
+
* which is why the `omk sample --from-traces` draft warning still stands — this
|
|
55
|
+
* only makes the within-failure distribution representative of frequency.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stratifyTraceSignals(items: TraceSignalItem[]): StratifiedTraceSignal[];
|
|
34
58
|
/**
|
|
35
59
|
* Build the generation prompt for `omk sample --from-traces`. Renders each
|
|
36
60
|
* observation-inbox signal (evidence + message window) into a section and asks
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createExecutor } from '../executors/index.js';
|
|
2
|
+
import { DEFAULT_GATE_THRESHOLD } from '../eval-core/verdict.js';
|
|
2
3
|
/**
|
|
3
4
|
* Generator 默认模型 'opus' (跟 eval 默认对齐)。
|
|
4
5
|
* lean=true 路径会自动追加 `--effort low`,关掉 opus 默认的扩展思考,
|
|
@@ -76,7 +77,7 @@ const SYSTEM_PROMPT = `你是一个评测用例生成器。你的任务是根据
|
|
|
76
77
|
来涨数量)。omk 的评分体系是 layered scoring: **fact 层**(deterministic 字面/工具断言)
|
|
77
78
|
+ **behavior 层**(代价指标如 turn 数 / 工具失败率) + **judge 层**(主观语义评分,从
|
|
78
79
|
sample.rubric 派生维度,judge LLM 看 trace 评 1-5)三层独立计分,verdict 是三层
|
|
79
|
-
独立过 threshold(默认
|
|
80
|
+
独立过 threshold(默认 ${DEFAULT_GATE_THRESHOLD})。**fact 层的本职是测 deterministic 端点,不是测轨迹**。
|
|
80
81
|
|
|
81
82
|
**断言哲学(关键):fact 测结果+里程碑,过程质量交 judge**
|
|
82
83
|
─────────────────────────────────────────────────────────────
|
|
@@ -109,7 +110,7 @@ const SYSTEM_PROMPT = `你是一个评测用例生成器。你的任务是根据
|
|
|
109
110
|
- tools_not_called 反模式断言 0-1 条(禁止接触某禁忌工具,如 tripwire sample)
|
|
110
111
|
- rubric 3-5 个判分维度(细致写明 judge 该看什么),由 sample.rubric 字段承载
|
|
111
112
|
|
|
112
|
-
*测量学背景:* 当前 omk verdict 三层独立 threshold(默认
|
|
113
|
+
*测量学背景:* 当前 omk verdict 三层独立 threshold(默认 ${DEFAULT_GATE_THRESHOLD}),fact 条目少之后单条
|
|
113
114
|
权重大、单次评测方差大,**强烈建议** 评测时带 \`--repeat 2\` 或更大测稳定性(coefficient
|
|
114
115
|
of variation),并参考 bootstrap CI 而非点估计。这是 fact 层稀疏化的代价,换来的是
|
|
115
116
|
fact 信号干净(不被 trajectory 字面噪音污染)。
|
|
@@ -464,10 +465,34 @@ async function finalizeSamples(samples, costUSD, skillContent) {
|
|
|
464
465
|
const TRACE_GEN_INSTRUCTIONS = `下面给出的不是 skill,而是从生产会话 trace 中观测到的失败 / 异常信号。请为这些信号生成评测用例(eval samples),使评测能复现并守住这些失败模式——把线上真实发生过的问题沉淀成回归用例。
|
|
465
466
|
|
|
466
467
|
要求:
|
|
467
|
-
-
|
|
468
|
+
- 按各信号标注的「占比」分配用例数:高频信号多生成、低频少生成,让用例集覆盖线上失败的真实频次分布(高占比信号 2-3 条,低占比 1 条即可);信号若是噪声 / 证据不足 / 无法复现,跳过它,不要硬凑。
|
|
468
469
|
- prompt 要还原触发该信号的场景(自然语言任务),不要直接复述证据文本。
|
|
469
470
|
- 断言优先用 mock_hit / tools_called / tools_not_called / tool_input_contains 精确锚定失败步骤,再用 contains 兜底;按「原子型」配比处理(无需工作流编号步骤),除非证据明显是多步流程。
|
|
470
471
|
- 不要在输出里说明判断过程,直接输出 JSON 数组。`;
|
|
472
|
+
/**
|
|
473
|
+
* Rank trace signals by frequency and annotate each with its share of the total
|
|
474
|
+
* occurrences. Lets `omk sample --from-traces` allocate samples *proportional to
|
|
475
|
+
* how often a failure actually happened* instead of a flat "1-2 per signal" — a
|
|
476
|
+
* failure seen 100× deserves more regression coverage than one seen twice.
|
|
477
|
+
*
|
|
478
|
+
* Deliberately does NOT re-merge signals here. The observation inbox is the only
|
|
479
|
+
* source of these items and already aggregates `occurrences` by the FULL identity
|
|
480
|
+
* — `skillName + cwd + sourceKind + signalType + signalSubtype + evidence`
|
|
481
|
+
* (`inbox.ts` `keyFor`). Re-merging on a narrower key (e.g. type+subtype+evidence)
|
|
482
|
+
* would fold *different skills / cwd* with the same failure shape into one entry,
|
|
483
|
+
* mis-attributing the summed occurrences to the first skill and skewing the
|
|
484
|
+
* regenerated distribution. So we trust the upstream dedup and only sort + weight.
|
|
485
|
+
*
|
|
486
|
+
* Does NOT fix the underlying selection bias (traces only capture *failures*),
|
|
487
|
+
* which is why the `omk sample --from-traces` draft warning still stands — this
|
|
488
|
+
* only makes the within-failure distribution representative of frequency.
|
|
489
|
+
*/
|
|
490
|
+
export function stratifyTraceSignals(items) {
|
|
491
|
+
const total = items.reduce((sum, it) => sum + (it.occurrences ?? 0), 0) || 1;
|
|
492
|
+
return items
|
|
493
|
+
.map((it) => ({ ...it, occurrences: it.occurrences ?? 0, weight: (it.occurrences ?? 0) / total }))
|
|
494
|
+
.sort((a, b) => b.occurrences - a.occurrences);
|
|
495
|
+
}
|
|
471
496
|
/**
|
|
472
497
|
* Build the generation prompt for `omk sample --from-traces`. Renders each
|
|
473
498
|
* observation-inbox signal (evidence + message window) into a section and asks
|
|
@@ -476,7 +501,9 @@ const TRACE_GEN_INSTRUCTIONS = `下面给出的不是 skill,而是从生产会
|
|
|
476
501
|
* judge prompt — so judge-prompt isolation is unaffected.
|
|
477
502
|
*/
|
|
478
503
|
export function buildSamplesFromTracesPrompt(items, count) {
|
|
479
|
-
|
|
504
|
+
// 先按频次分层(合并重复 + 算占比 + 降序),让模型按「占比」分配配额,而非每信号一刀切。
|
|
505
|
+
const stratified = stratifyTraceSignals(items);
|
|
506
|
+
const sections = stratified.map((it, i) => {
|
|
480
507
|
const ev = it.evidence ?? {};
|
|
481
508
|
const evLines = [
|
|
482
509
|
ev.tool && `工具: ${ev.tool}`,
|
|
@@ -490,14 +517,15 @@ export function buildSamplesFromTracesPrompt(items, count) {
|
|
|
490
517
|
? '\n上下文消息:\n' + [...it.messageWindow.before, ...it.messageWindow.event, ...it.messageWindow.after]
|
|
491
518
|
.map((m) => ` [${m.role}] ${m.snippet}`).join('\n')
|
|
492
519
|
: '';
|
|
493
|
-
|
|
520
|
+
const pct = (it.weight * 100).toFixed(0);
|
|
521
|
+
return `### 信号 ${i + 1}:${it.signalType} / ${it.signalSubtype}(严重度 ${it.severity},出现 ${it.occurrences} 次 · 占比 ${pct}%,skill: ${it.skillName})\n${evLines}${win}`;
|
|
494
522
|
}).join('\n\n---\n\n');
|
|
495
523
|
const countLine = typeof count === 'number'
|
|
496
|
-
? `共生成约 ${count}
|
|
497
|
-
: '
|
|
524
|
+
? `共生成约 ${count} 条评测用例,按各信号的「占比」分配配额(高频多、低频少),覆盖整体失败分布。`
|
|
525
|
+
: '按各信号「占比」分配:高频信号多生成、低频少生成,覆盖整体失败分布。';
|
|
498
526
|
return `${TRACE_GEN_INSTRUCTIONS}
|
|
499
527
|
|
|
500
|
-
## 观测到的失败信号(共 ${
|
|
528
|
+
## 观测到的失败信号(共 ${stratified.length} 个,已按出现频次降序)
|
|
501
529
|
|
|
502
530
|
${sections}
|
|
503
531
|
|
|
@@ -37,8 +37,8 @@ export default class Eval extends BaseCommand {
|
|
|
37
37
|
'no-strict-baseline': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
38
38
|
effort: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
39
|
'no-diagnostic': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
40
|
-
blind: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
41
40
|
repeat: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
41
|
+
'holdout-ratio': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
42
42
|
'judge-repeat': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
43
43
|
bootstrap: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
44
44
|
'bootstrap-samples': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|