Comments (2)
check your input file which is HIN format. This code regards the graphs as directed graphs basically. If you want the un-directed graphs, you have to write the two edges to your input text file.
from hin2vec.
你需要检查生成的随机游走文件中是否缺失特定节点并找出原因,我记得随机游走是会将所有节点作为起点运行至少一次的。
另外这里有一个bug,你可以检查一下边权重有没有低于0.1的。这种边不会被随机游走采样到,所以如果一个节点相关联的所有边权重都低于0.1那么节点就不会被采样到。最简单的解决方案是https://github.com/csiesheep/hin2vec/blob/master/ds/network.py#L282
node_choices[from_id] += [(to_id, edge_id)] * int(w*10)
修改常数10,比如改成100,这样权重为0.01的边就会被记录下来。
from hin2vec.
Related Issues (20)
- main.py and main_py.py are equivalent, right? HOT 2
- Modify code in main_py.py HOT 1
- if I have UBCaB meta_path, What should I change to get embedding vector for you code? HOT 1
- about dataset? HOT 3
- How to calculate the gradient of metapath embedding? HOT 2
- segmentation fault (core dumped) on Ubuntu HOT 3
- multiple processes Error in main_py.py HOT 1
- Index out of range HOT 2
- About output?
- A question about use tensorflow to implement hin2vec algorithm
- Could you add a license?
- input format
- For these node classifications, why eliminate from HINs, groups in Blogcatalog, categories in Yelp, venues in DBLP and patent classes in U.S. Patents? when we learn the representation of nodes.
- use hin2vec to link predicition
- Multiple metapaths
- 'model_c' 不是内部或外部命令,也不是可运行的程序 HOT 1
- In a trained node_vector file, why does the dim of the last node vector get shorter?
- Key Error when test with a toy network HOT 2
- Seek the Link-prediction implementation source code HOT 3
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 hin2vec.