mirror of
https://github.com/unanmed/ginka-generator.git
synced 2026-11-15 19:34:30 +08:00
feat: 记录训练过程
This commit is contained in:
1 parent
6a1aeaa77e
commit
d7209a68a2
2 files changed
+30
-6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user