Class AbstractNaiveBayesImpl

    • Constructor Detail

      • AbstractNaiveBayesImpl

        public AbstractNaiveBayesImpl()
    • Method Detail

      • pathGlobal

        protected static String pathGlobal()
        Path to the total number of observations
        Returns:
        Path to the total number of observations
      • pathGlobalCountCategories

        protected static String pathGlobalCountCategories()
        Path to the total count of distinct categories
        Returns:
        Path to the total count of distinct categories
      • pathCategory

        protected static String pathCategory​(String category)
        Path to the number of observations in a category
        Parameters:
        category - The category
        Returns:
        Path to the number of observations in a category
      • pathCategoryFeatureKey

        protected static String pathCategoryFeatureKey​(String category,
                                                       String featureKey)
        Path to the number of observations in a category, with feature featureKey
        Parameters:
        category - The category
        featureKey - The feature key
        Returns:
        Path to the number of observations in a category, with feature featureKey
      • pathFeatureKeyValue

        protected static String pathFeatureKeyValue​(String featureKey,
                                                    String featureValue)
        Path to the number of observations with feature featureKey and feature value featureValue
        Parameters:
        featureKey - The feature key
        featureValue - The feature value
        Returns:
        Path to the number of observations with feature featureKey and feature value featureValue
      • pathFeatureKey

        protected static String pathFeatureKey​(String featureKey)
        Path to the counter for featureKey
        Parameters:
        featureKey - The featureKey
        Returns:
        Path to the counter for feature featureKey
      • pathFeatureKeyCountValueTypes

        protected static String pathFeatureKeyCountValueTypes​(String featureKey)
        Path to the number of distinct value types for feature featureKey
        Parameters:
        featureKey - The featureKey
        Returns:
        Path to the number of distinct value types for feature featureKey
      • pathCategoryFeatureKeyValue

        protected static String pathCategoryFeatureKeyValue​(String category,
                                                            String featureKey,
                                                            String featureValue)
        Path to the number of observations in a category, with feature featureKey and value featureValue
        Parameters:
        category - the Category
        featureKey - the featureKey
        featureValue - the featureValue
        Returns:
        Path the he number of observations in a category, with feature featureKey and value featureValue