relational.classifier
Class ProbRNMultiHopMultiLabel
java.lang.Object
weka.classifiers.Classifier
relational.classifier.RNCMultiLabel
relational.classifier.ProbRNMultiLabel
relational.classifier.ProbRNMultiHopMultiLabel
- All Implemented Interfaces:
- java.lang.Cloneable, weka.core.OptionHandler, java.io.Serializable
- public class ProbRNMultiHopMultiLabel
- extends ProbRNMultiLabel
- See Also:
- Serialized Form
Method Summary |
double[] |
distributionForInstance(edu.uci.ics.jung.graph.impl.SparseGraph graph,
weka.core.Instance inst,
java.util.HashMap id2ClassProb,
int label,
java.util.HashMap weights,
java.util.HashMap normWeights,
double minWeight,
java.lang.String type,
int numNeighbors,
int hops)
Calculates the class probability distribution for an instance using PRNMultiHop (binary classification) |
Methods inherited from class weka.classifiers.Classifier |
classifyInstance, debugTipText, distributionForInstance, forName, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProbRNMultiHopMultiLabel
public ProbRNMultiHopMultiLabel()
ProbRNMultiHopMultiLabel
public ProbRNMultiHopMultiLabel(double minWeight,
int neighb)
distributionForInstance
public double[] distributionForInstance(edu.uci.ics.jung.graph.impl.SparseGraph graph,
weka.core.Instance inst,
java.util.HashMap id2ClassProb,
int label,
java.util.HashMap weights,
java.util.HashMap normWeights,
double minWeight,
java.lang.String type,
int numNeighbors,
int hops)
throws java.lang.Exception
- Calculates the class probability distribution for an instance using PRNMultiHop (binary classification)
- Parameters:
graph
- - graph (jung)inst
- - instance to be classifiedid2ClassProb
- - initialization of test instanceslabel
- - the category to be consideredweights
- - the weights of the edges in the graphnormWeights
- - normalized weightsminWeight
- - the minimal weight which an edge has to have in order to be considered in PRNMultiHoptype
- - indicates the type of problem (heterogenous or homogenous)numNeighbors
- - determines the number of neighbors for which additional indirect neighbors will be considered using PRNMultiHop
- Returns:
- class probability distribution
- Throws:
java.lang.Exception