和顺 / 衡律 返回所属 Agent
16.3

八维风险评估与损害路径

原能力

按八维风险及损害路径评价,明确退出、履约、流动性及未知义务。(合同附件 R7 16.3)

首选项目

NetworkX(BSD-3-Clause)。 NetworkX

匹配范围

有向图和敏感性量化支持已建损害模型。

源码

NetworkX · def descendants(

networkx/algorithms/dag.py · 36–49 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
def descendants(G, source):
    """Returns all nodes reachable from `source` in `G`.

    Parameters
    ----------
    G : NetworkX Graph
    source : node in `G`

    Returns
    -------
    set()
        The descendants of `source` in `G`

    Raises

SALib · def analyze(

src/SALib/analyze/sobol.py · 22–35 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
def analyze(
    problem,
    Y,
    calc_second_order=True,
    num_resamples=100,
    conf_level=0.95,
    print_to_console=False,
    parallel=False,
    n_processors=None,
    keep_resamples=False,
    seed=None,
):
    """Perform Sobol Analysis on model outputs.

实现与验收要点

八维原定义、跨风险因果、概率与处置证据。