Interface MulticlassPredictor

  • All Superinterfaces:
    Predictor

    @Deprecated
    public interface MulticlassPredictor
    extends Predictor
    Deprecated.
    Please retrain your model and use the IClassificationPredictor interface instead.
    An interface for Classification models. For binary classifiers, the Predictor.score function should return the positive class probability. Predictor.score is not valid for multi-class predictors
    • Method Detail

      • classificationScore

        Map<String,​Double> classificationScore​(Row rowToScore)
                                              throws Exception
        Deprecated.
        Returns a map of class labels to probability for the given row.

        The Map should be an ordered map whose keySet is sorted in decreasing probability.

        Parameters:
        rowToScore - the Row object to be classified
        Returns:
        a mapping from a string class label to a double probability
        Throws:
        Exception - If an input or internal exception occurs