After running LP, each vertex has an estimated set of scores for each label.
After running LP, each vertex has an estimated set of scores for each label. This method extracts those in a convenient manner by (a) excising the DUMMY label (b) getting only the labels better than DUMMY if requested (false by default) (c) normalizing the scores of all labels extracted (true by default)
After running LP and given a vertex, sort the labels, remove the DUMMY label, take the top N labels, and normalize the scores of those top N.
Get the vertices given their ids.
Returns the accuracy and average mean reciprocal rank of the graph for a given set of vertices and their corresponding gold labels.
Get the top label for a given vertex.
Get the top label for a given vertex. Return the default label otherwise. There should be an Option returning version of this.
An object that provides common functions needed for using Junto.