Comments (4)
非常感谢关注CogDL!请问这边是只需要有监督节点分类的结果 还是 有监督/无监督 都需要呢?无监督这边的话CogDL里面目前已经保存了生成的embedding
from cogdl.
非常感谢回复,您好,我这边,有监督/无监督都需要。
from cogdl.
你好,对于有监督的情况,可以先训练保存模型,再得到结果,比如 gcn + cora:
python scripts/train.py --task node_classification --model gcn --dataset cora --save_model <model_path>
python scripts/train.py --task node_classification --model gcn --dataset cora --checkpoint <model_path> --inference
则模型的预测结果会被保存在gcn_cora.pred
, 可以通过torch.load
读取
对于无监督的情况,每次训练得到的embedding保存在./embedding
下,可以通过np.load
读取,然后您可以训练一个 linear classifier 然后根据个人需要得到分类结果
from cogdl.
非常感谢
from cogdl.
Related Issues (20)
- How to use cora dataset(or other dataset in the package) in the generate embedding pipeline? HOT 1
- cogdl 支持 windows 吗 ? HOT 1
- about academic entity recognition task
- 无法编译CogDL中的快速算子库 HOT 1
- One problem while using the RevGNNLayer from the cogdl.layers HOT 4
- How to convert PyG HeteroData object to CogDL dataset HOT 3
- 请问GATNE-I实现了吗? HOT 1
- pip 安装 cogdl失败 HOT 2
- 如果我没有显卡可以训练,怎么设置参数 HOT 1
- 关于train_loader的使用问题? HOT 1
- Training on multiple GPUs across a cluster of multiple machines HOT 1
- Mac M1无法导入cogdl HOT 1
- import error HOT 1
- 支持超图吗?有具体的例子吗 HOT 1
- 'np.int' should changed to 'np.int16' in cogdl/utils/utils.py HOT 2
- AttributeError: 'Graph' object has no attribute 'train_mask' HOT 2
- 节点特征 HOT 2
- 有关内部函数的实现 HOT 1
- Leaderboard for heterogeneous graphs is missing HOT 4
- dataset下载链接失效了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cogdl.