Package com.namsor.oss.classify.bayes
Class AbstractNaiveBayesImpl
- java.lang.Object
-
- com.namsor.oss.classify.bayes.AbstractNaiveBayesImpl
-
- Direct Known Subclasses:
AbstractNaiveBayesClassifierImpl
,NaiveBayesExplainerImpl
public class AbstractNaiveBayesImpl extends Object
Functions common to the Naive Bayes Classifier and the Explainer- Author:
- elian
-
-
Constructor Summary
Constructors Constructor Description AbstractNaiveBayesImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static String
pathCategory(String category)
Path to the number of observations in a categoryprotected static String
pathCategoryFeatureKey(String category, String featureKey)
Path to the number of observations in a category, with feature featureKeyprotected static String
pathCategoryFeatureKeyValue(String category, String featureKey, String featureValue)
Path to the number of observations in a category, with feature featureKey and value featureValueprotected static String
pathFeatureKey(String featureKey)
Path to the counter for featureKeyprotected static String
pathFeatureKeyCountValueTypes(String featureKey)
Path to the number of distinct value types for feature featureKeyprotected static String
pathFeatureKeyValue(String featureKey, String featureValue)
Path to the number of observations with feature featureKey and feature value featureValueprotected static String
pathGlobal()
Path to the total number of observationsprotected static String
pathGlobalCountCategories()
Path to the total count of distinct categories
-
-
-
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 categoryfeatureKey
- 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 keyfeatureValue
- 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 CategoryfeatureKey
- the featureKeyfeatureValue
- the featureValue- Returns:
- Path the he number of observations in a category, with feature featureKey and value featureValue
-
-