merge: 合并远端仓库初始提交,保留本地 README
基于 JittorGeometric 的节点分类热身赛解决方案,使用 GRAND + GCNII 集成方法在 Cora 数据集上进行节点分类。
Python 版本:3.8+
# 安装 Jittor pip install jittor # 安装依赖 pip install -r requirements.txt
若需从源码安装 JittorGeometric:
pip install -e .
将 cora.pkl 放置于 data/ 目录:
cora.pkl
data/
data/ cora.pkl
cora.pkl 字段说明:
x
y
edge_index
train_mask
val_mask
test_mask
num_classes
num_features
bash scripts/run_grand.sh # 或直接调用 python src/train_grand.py --data_dir ./data --output_dir ./outputs --num_seeds 20
输出文件保存至 outputs/ 目录。
outputs/
训练完成后自动推理并保存结果:
outputs/result.json
{"node_idx": class_label, ...}
outputs/result_single_best.json
outputs/result_ens_top{k}.json
方法说明:
注:实际线上提交结果与本地验证集准确率可能存在小幅差异。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
计图比赛热身赛解决方案(节点分类)
基于 JittorGeometric 的节点分类热身赛解决方案,使用 GRAND + GCNII 集成方法在 Cora 数据集上进行节点分类。
1. 环境安装
Python 版本:3.8+
若需从源码安装 JittorGeometric:
2. 数据准备
将
cora.pkl放置于data/目录:cora.pkl字段说明:xyedge_indextrain_maskval_masktest_masknum_classesnum_features3. 训练
输出文件保存至
outputs/目录。4. 推理 / 结果文件
训练完成后自动推理并保存结果:
outputs/result.json{"node_idx": class_label, ...}outputs/result_single_best.jsonoutputs/result_ens_top{k}.json5. 结果说明
方法说明:
引用