public class HITSWithPriors<V,E> extends AbstractIterativeScorerWithPriors<V,E,HITS.Scores>
| Modifier and Type | Field and Description |
|---|---|
protected HITS.Scores |
disappearing_potential
The sum of the potential, at each step, associated with vertices with no outedges (authority)
or no inedges (hub).
|
alpha, vertex_priorsedge_weights, graph, hyperedges_are_self_loops, max_delta, max_iterations, output_reversed, tolerance, total_iterations| Constructor and Description |
|---|
HITSWithPriors(Hypergraph<V,E> g,
com.google.common.base.Function<E,? extends Number> edge_weights,
com.google.common.base.Function<V,HITS.Scores> vertex_priors,
double alpha)
Creates an instance for the specified graph, edge weights, vertex prior probabilities,
and random jump probability (alpha).
|
HITSWithPriors(Hypergraph<V,E> g,
com.google.common.base.Function<V,HITS.Scores> vertex_priors,
double alpha)
Creates an instance for the specified graph, vertex priors, and random
jump probability (alpha).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterStep()
Code which is executed after each step.
|
protected void |
collectDisappearingPotential(V v)
Collects the "disappearing potential" associated with vertices that have either
no incoming edges, no outgoing edges, or both.
|
protected void |
normalizeScores()
Normalizes scores so that sum of their squares = 1.
|
protected double |
update(V v)
Updates the value for this vertex.
|
getAlpha, getVertexPrior, getVertexPriors, initializeacceptDisconnectedGraph, done, evaluate, getAdjustedIncidentCount, getCurrentValue, getEdgeWeight, getEdgeWeights, getIterations, getMaxIterations, getOutputValue, getTolerance, getVertexScore, isDisconnectedGraphOK, setCurrentValue, setEdgeWeights, setHyperedgesAreSelfLoops, setMaxIterations, setOutputValue, setTolerance, step, swapOutputForCurrent, updateMaxDeltaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVertexScoreprotected HITS.Scores disappearing_potential
public HITSWithPriors(Hypergraph<V,E> g, com.google.common.base.Function<E,? extends Number> edge_weights, com.google.common.base.Function<V,HITS.Scores> vertex_priors, double alpha)
g - the input graphedge_weights - the edge weightsvertex_priors - the prior probability for each vertexalpha - the probability of a random jump at each steppublic HITSWithPriors(Hypergraph<V,E> g, com.google.common.base.Function<V,HITS.Scores> vertex_priors, double alpha)
g - the input graphvertex_priors - the prior probability for each vertexalpha - the probability of a random jump at each stepprotected double update(V v)
update in class AbstractIterativeScorer<V,E,HITS.Scores>v - the vertex whose value is to be updatedprotected void afterStep()
super.afterStep().afterStep in class AbstractIterativeScorer<V,E,HITS.Scores>collectDisappearingPotential(Object)protected void normalizeScores()
protected void collectDisappearingPotential(V v)
collectDisappearingPotential in class AbstractIterativeScorer<V,E,HITS.Scores>v - the vertex whose potential is being collectedCopyright © 2016. All rights reserved.