Interface IClassification

    • Method Detail

      • getClassProbabilities

        IClassProbability[] getClassProbabilities()
        The ordered classes and probabilities.
        Returns:
        the classProbabilities : class name and probability (possibly the last class is 'Other')
      • getExplanationData

        Map<String,​Long> getExplanationData()
        All the data needed to explain the results.
        Returns:
        the explanation : list of features and counts
      • isLaplaceSmoothed

        boolean isLaplaceSmoothed()
        Is Laplace smoothed?
        Returns:
        True if Laplace smoothed
      • isLaplaceSmoothedVariant

        boolean isLaplaceSmoothedVariant()
        If Laplace Smoothed With variant, then: likelyhood[i] = 1d * ((categoryCount + alpha) / (globalCount + globalCountCategories * alpha)) * product; otherwise: likelyhood[i] = 1d * categoryCount / globalCount * product;
        Returns:
        If Laplace smothing variant used
      • getFeatures

        Map<String,​String> getFeatures()
        The input features
        Returns:
        The input features
      • getLaplaceSmoothingAlpha

        double getLaplaceSmoothingAlpha()
        The alpha value used for Laplace smoothing
        Returns:
        The alpha value, usually 1.0