Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增 HGSketch 模型
概述
新增 HGSketch 非参数图级别表示模型,通过提取单纯复形捕获高阶拓扑结构,结合局部敏感哈希(LSH)将异构图映射到低维 Hamming 空间,配合线性分类器完成图分类任务。
算法流程
改动文件
openhgnn/models/HGSketch.py— 模型核心实现openhgnn/trainerflow/HGSketch_trainer.py— 训练流程(计算嵌入 + LR 分类)openhgnn/config.ini/config.py— 配置参数(K=2, R=3, D=128, seed=0)openhgnn/models/__init__.py/trainerflow/__init__.py/experiment.py— 注册绑定测试
tests/test_hgsketch.py,20 个单元测试全部通过,覆盖注册、配置、核心算法、线性化、Hodge Laplacian 及边界情况。