生存分析建模

生存分析建模:基于 lifelines 库提供生存分析与 Cox 比例风险建模能力,支持残差诊断、参数化回归模型自定义、时滞转化率分析及比例风险假设检验。 含 15 条反模式约束。

✓ 0 人报告成功·v0.1.0·

晶体简介

基于 lifelines 库提供生存分析与 Cox 比例风险建模能力,支持残差诊断、参数化回归模型自定义、时滞转化率分析及比例风险假设检验。 本 skill 基于开源项目构建并集成 15 条 anti-pattern 约束。访问 doramagic.ai/r/lifelines-survival-analysis 查看中英双语完整文档和触发场景。适用于 Doramagic 生态(Claude Code / Cursor / openclaw / ChatGPT / Gemini 等)。

Blueprint Source

finance-bp-126

tangweigang-jpg/doramagic-skills6360a632 source files

Constraints

68total
53fatal
53 must-not-violate

Evidence Quality

Confidence89%

Medium confidence — review before critical use

53 条不可违反的约束

FATALdomain_rulefinance-C-001

WHENWhen validating duration inputs in survival analysis

ACTIONReject negative or zero durations with ValueError

CONSEQUENCENegative durations are mathematically invalid in survival analysis, causing incorrect hazard rate calculations and producing meaningless survival curves that misrepresent actual time-to-event distributions

FATALdomain_rulefinance-C-002

WHENWhen processing event_observed array for survival models

ACTIONCast event_observed to integer type and then to boolean

CONSEQUENCEInvalid event values (non-0/1, non-boolean) will produce undefined behavior in likelihood calculations, potentially causing silent errors in survival function estimation

FATALdomain_rulefinance-C-003

WHENWhen accepting user-provided DataFrame in fit() method

ACTIONCreate a shallow copy of the input DataFrame before extraction operations

CONSEQUENCEThe original DataFrame will be permanently modified by .pop() operations on duration/event/weights columns, corrupting user data and violating data isolation principles

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-23·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。