Files
InfoRSI/src/rules/index.ts
T
iomgaa 852600df02 feat: 诊断(任务书 18 第一块):诊断数学、四种提交、一次运行跑多个实验、账本与材料、flow 诊断各步
消融默认关,关掉时解释阶段一并跳过;选诊断实验用信息价值减成本。
eval/diagnosis/research.json 为第三块配置。vocab 字段说明的出口文字随提示词一起改,见下一次提交的 prompts/ 与同文件改动(本次含在内)。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 10:36:20 -04:00

138 lines
2.9 KiB
TypeScript

// rules:方法.md 第六部分的全部公式和常数、第七部分的余额、4.2 的入口分配(docs/结构.md 第二部分)。
// 纯计算:输入数字,输出数字,不碰文件、数据库、模型,也不用全局随机数。
export {
combinations,
compareIds,
epsilonFloor,
GRID_COMBINATION_CAP,
GRID_SUBDIVISIONS,
improvement,
INDISPENSABLE_SUPPORT,
INTERACTION_CUT,
NET_TOLERANCE,
} from "./basics.ts";
export {
ablationCellMixture,
authorShares,
below,
breakpoints,
density,
forwardMergedRange,
forwardMixtures,
integrateUpperTail,
knotsMean,
mapKnots,
mapMixture,
mixtureBelow,
mixtureQuantile,
mixtureRange,
personKnots,
reserveKnots,
toImprovement,
type Component,
type Knots,
type Mixture,
type Point,
} from "./distribution.ts";
export {
adopt,
adoptionLine,
batchValue,
lossProbability,
selectBestExpected,
selectUniformRandom,
type AdoptionLineInput,
type BatchDecision,
type BatchInput,
} from "./forward.ts";
export {
ablationFinding,
inseparableGroups,
judgeExplanations,
listCells,
settleAblation,
sharedSettings,
supportOf,
synergyLabel,
totalGain,
type AblationCell,
type AblationExplanation,
type CellOutcome,
type SettleInput,
type SynergyLabel,
type ExplanationVerdict,
} from "./ablation.ts";
export {
ablationModel,
cellGrid,
evaluateCombos,
gridSize,
informationValue,
informationValueExact,
informationValueGrid,
measuredGrid,
OPEN_RESERVE,
remainingSpace,
type AblationModel,
type AblationModelInput,
type ComboParams,
type ComboValue,
} from "./value.ts";
export {
chooseBet,
pickByNet,
selectAll,
selectByValue,
selectNone,
selectRandomSameCount,
topCombo,
type BetResult,
type CellDecision,
type CellRuleInput,
type UntestedReason,
} from "./cells.ts";
export {
bitWidth,
cellIndex,
coverage,
covers,
disagreement,
entropyBits,
placement,
surprise,
worldBits,
type Placement,
} from "./bits.ts";
export {
diagnosisModel,
evaluateDiagnosisCombos,
selectDiagnosis,
settleDiagnosis,
type DiagnosisCombo,
type DiagnosisDecision,
type DiagnosisDirection,
type DiagnosisExplanation,
type DiagnosisModel,
type DiagnosisModelInput,
type DiagnosisParams,
type DiagnosisRuleInput,
type ExperimentOutcome,
type SettleDiagnosisInput,
type SkippedReason,
} from "./diagnosis.ts";
export { ablationCellLimit, forwardBatchSize, runBalance, type RunState } from "./budget.ts";
export { authorVsMerged, trackRecord, type Phase, type Tally } from "./record.ts";
export { assignEntries, type EntryAssignment } from "./entries.ts";
export { decisionSeed, seededRandom, seededSample } from "./random.ts";
export {
BATCH_RULES,
CELL_RULES,
DIAGNOSIS_RULES,
runBatchRule,
runCellRule,
runDiagnosisRule,
type BatchRuleName,
type CellRuleName,
type DiagnosisRuleName,
} from "./registry.ts";