Interface IClassificationExplained

  • All Superinterfaces:
    IClassification
    All Known Implementing Classes:
    ClassificationExplainedImpl

    public interface IClassificationExplained
    extends IClassification
    Contains additional details on the classifications, such as the formulas or the algebraic calculation. The toString() method returns the explanation in human-readable form, and interpretable using JavaScript
    Author:
    elian
    • Method Detail

      • getLikelyhoods

        double[] getLikelyhoods()
        Get the likelyhoods values, ex. 0.011806375442739082
        Returns:
        The likelyhood values
      • getLikelyhoodFormulae

        String[] getLikelyhoodFormulae()
        For each likelyhood, get the formula ex. gL_cA_Yes / gL * ((gL_cA_Yes_fE_temp_is_Cool + alpha)/(gL_cA_Yes_fE_temp + ( gL_fE_temp_count * alpha )) * (gL_cA_Yes_fE_humidity_is_High + alpha)/(gL_cA_Yes_fE_humidity + ( gL_fE_humidity_count * alpha )) * (gL_cA_Yes_fE_outlook_is_Overcast + alpha)/(gL_cA_Yes_fE_outlook + ( gL_fE_outlook_count * alpha )) * (gL_cA_Yes_fE_wind_is_Strong + alpha)/(gL_cA_Yes_fE_wind + ( gL_fE_wind_count * alpha )) * 1 )
        Returns:
        The likelyhood formulae
      • getLikelyhoodExpressions

        String[] getLikelyhoodExpressions()
        For each likelyhood, get the expression ex. 9 / 14 * ((3 + 1.0 )/(9 + ( 3 * 1.0 )) * (3 + 1.0 )/(9 + ( 2 * 1.0 )) * (4 + 1.0 )/(9 + ( 3 * 1.0 )) * (3 + 1.0 )/(9 + ( 2 * 1.0 )) * 1 )
        Returns:
        The likelyhood algebraic expression