merton.extensions.base¶
Structural-model ABC and shared result dataclass.
Classes¶
Output of any |
|
ABC for structural credit-risk models beyond the flat Merton setup. |
Module Contents¶
- class merton.extensions.base.StructuralResult[source]¶
Output of any
StructuralModel.Mirrors the shape of
merton.MertonResultso downstream tools can treat any structural fit uniformly.
- class merton.extensions.base.StructuralModel[source]¶
Bases:
abc.ABCABC for structural credit-risk models beyond the flat Merton setup.
- abstractmethod fit(firm: merton.core.firm.Firm) StructuralResult[source]¶
Return a
StructuralResultforfirm.