信用违约损失模型

信用违约损失模型:构建并训练 LGD(违约损失率)机器学习模型,支持基于历史违约数据的信用风险量化评估与预测。 含 14 条反模式约束。

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

晶体简介

构建并训练 LGD(违约损失率)机器学习模型,支持基于历史违约数据的信用风险量化评估与预测。 本 skill 基于开源项目构建并集成 14 条 anti-pattern 约束。访问 doramagic.ai/r/credit-lgd-model 查看中英双语完整文档和触发场景。适用于 Doramagic 生态(Claude Code / Cursor / openclaw / ChatGPT / Gemini 等)。

Blueprint Source

finance-bp-112

tangweigang-jpg/doramagic-skills6360a632 source files

Constraints

45total
31fatal
31 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

31 条不可违反的约束

FATALdomain_rulefinance-C-001

WHENWhen implementing data acquisition for LGD regression model

ACTIONReturn a DataFrame containing exactly 'X' and 'Y' columns

CONSEQUENCEThe downstream lgdModel.py module accesses df[['X']] and df['Y'] columns without validation, causing KeyError exceptions if column names are different

FATALdomain_rulefinance-C-002

WHENWhen implementing local file mode (choice=1) in dataSource

ACTIONRead CSV file from server_dirs/{server_id}/regression_data.csv path

CONSEQUENCEpandas.read_csv will raise FileNotFoundError if the file path is incorrect, and there is no try-except handler to provide meaningful error messages

FATALresource_boundaryfinance-C-004

WHENWhen configuring data transport for the LGD model

ACTIONPass choice values other than 1 or 2 to dataSource

CONSEQUENCEIf choice is neither 1 nor 2, the function returns None implicitly, causing lgdModel.py to fail when trying to access df[['X']] columns

常见问题

讨论 (0)

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

更新历史

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

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