Documentation of 'cc.mallet.cluster.neighbor_evaluator.ClassifyingNeighborEvaluator' Java class
ClassifyingNeighborEvaluator
cc.mallet.cluster.neighbor_evaluator

Class ClassifyingNeighborEvaluator

    • Constructor Detail

      • ClassifyingNeighborEvaluator

        public ClassifyingNeighborEvaluator(Classifier classifier,
                                            java.lang.String scoringLabel)
        Parameters:
        classifier - The Classifier used to assign a score to each Neighbor.
        scoringLabel - The label corresponding to a positive instance (e.g. "YES").
    • Method Detail

      • getClassifier

        public Classifier getClassifier()
        Returns:
        The classifier.
      • evaluate

        public double evaluate(Neighbor neighbor)
        Specified by:
        evaluate in interface NeighborEvaluator
        Returns:
        A higher score indicates that the modified Clustering is preferred.
      • evaluate

        public double[] evaluate(Neighbor[] neighbors)
        Specified by:
        evaluate in interface NeighborEvaluator
        Returns:
        One score per neighbor. A higher score indicates that the modified Clustering is preferred.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.