Credit LGD Model
Credit LGD Model: Credit LGD Model: specialized toolkit for 3+ finance workflows covered in the triggers section.
Overview
Constraints
Evidence Quality
Medium confidence — review before critical use
31 non-negotiable constraints
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
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
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
FAQ
Discussion (0)
No comments yet. Be the first to share!
Changelog
v0.1.0: Initial release on Doramagic.ai. Auto-generated batch-v1 metadata and FAQs based on tangweigang-jpg/doramagic-skills.