横向画图
graph LR
subgraph GNN-Risk
direction LR
subgraph 数据预处理模块
direction TB
A1[数据清洗]
A2[类别编码]
A3[特征标准化]
A4[特征选择]
A1 --> A2 --> A3 --> A4
end
subgraph 知识图谱构建模块
direction TB
B1[节点定义]
B2[边的定义]
B3[知识融合]
B4[图谱更新]
B1 --> B2 --> B3 --> B4
end
subgraph 图神经网络模块
direction TB
C1[输入层]
C2[GCN层1]
C3[GCN层2]
C4[输出层]
C1 --> C2 --> C3 --> C4
end
subgraph 风险等级预测模块
direction TB
D1[前向传播]
D2[损失计算]
D3[参数更新]
D4[结果评估]
D1 --> D2 --> D3 --> D4
end
数据预处理模块 --> 知识图谱构建模块 --> 图神经网络模块 --> 风险等级预测模块
end
style 数据预处理模块 fill:#ffcccb,stroke:#333,stroke-width:2px;
style 知识图谱构建模块 fill:#add8e6,stroke:#333,stroke-width:2px;
style 图神经网络模块 fill:#90ee90,stroke:#333,stroke-width:2px;
style 风险等级预测模块 fill:#dda0dd,stroke:#333,stroke-width:2px;
style GNN-Risk stroke:#9370DB,stroke-width:4px;
竖向画图
graph LR
subgraph GNN-Risk
style 数据预处理模块 fill:#ffcccb,stroke:#333,stroke-width:2px;
style 知识图谱构建模块 fill:#add8e6,stroke:#333,stroke-width:2px;
style 图神经网络模块 fill:#90ee90,stroke:#333,stroke-width:2px;
style 风险等级预测模块 fill:#dda0dd,stroke:#333,stroke-width:2px;
数据预处理模块 --> 知识图谱构建模块 --> 图神经网络模块 --> 风险等级预测模块
subgraph 数据预处理模块[数据预处理模块]
direction TB
A1[数据清洗] --> A2[类别编码] --> A3[特征标准化]
end
subgraph 知识图谱构建模块[知识图谱构建模块]
direction TB
B1[节点定义] --> B2[边的定义]
end
subgraph 图神经网络模块[图神经网络模块]
direction TB
C1[输入层] --> C2[GCN层1] --> C3[GCN层2] --> C4[输出层]
end
subgraph 风险等级预测模块[风险等级预测模块]
direction TB
D1[前向传播] --> D2[损失计算] --> D3[参数更新]
end
end