feat: 记录训练过程

This commit is contained in:
AncTe committed 2025-04-03 13:36:05 +08:00
1 parent 6a1aeaa77e
commit d7209a68a2
2 files changed
+30 -6

No files matched your search

+2 -2
View File
@@ -87,8 +87,8 @@ function weisfeilerLehmanIteration(
});
weight *= decay;
});
// 把每个节点的原始标签也加上,权重使用最远权重再衰减2次,可以认为是资源重复率
weight *= decay ** 2;
// 把每个节点的原始标签也加上,权重使用最远权重再衰减1次,可以认为是资源重复率
weight *= decay;
nodes.forEach(node => {
if (!numMap.has(node.originalLabel)) {
numMap.set(node.originalLabel, weight);