sh demo.sh
- Results in
toy.inferred
andtoy.result
python socnl.py [training filepath] [graph filepath] [# of nodes] [# of labeled nodes] [# of labels] [lambda] > [inferred filepath]
python evaluation.py [test filepath] [inferred filepath] > [result filepath]
- socnl.py requires numpy/scipy
Make sure to start all node ids from 0.
[src node id] \t [dst node id]
- See toy data file
[node id] \t [label id]
- Make sure to list labeled nodes on top, and unlabeled nodes on bottom.
- For unlabeled nodes, let [label id] = -1.
- See toy data file
[node id] \t [label id]
- Make sure to list only test nodes.
- See toy data file
[inferred label id] \t [confidence value]
[precision@p] [p]