You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2021. It is now read-only.
@@ -124,8 +124,9 @@ The abstract ```Classifier<T, K>``` serves as a base for the concrete ```BayesCl
124
124
*```void incrementCategory(K category)``` Increments the count of a given category. This is equal to telling the classifier, that this category has occurred once more.
125
125
*```void decrementFeature(T feature, K category)``` Decrements the count of a given feature in the given category. This is equal to telling the classifier that this feature was classified once in the category.
126
126
*```void decrementCategory(K category)``` Decrements the count of a given category. This is equal to telling the classifier, that this category has occurred once less.
127
-
*```int featureCount(T feature, K category)``` Retrieves the number of occurrences of the given feature in the given category.
128
-
*```int categoryCount(K category)``` Retrieves the number of occurrences of the given category.
127
+
*```int getFeatureCount(T feature, K category)``` Retrieves the number of occurrences of the given feature in the given category.
128
+
*```int getFeatureCount(T feature)``` Retrieves the total number of occurrences of the given feature.
129
+
*```int getCategoryCount(K category)``` Retrieves the number of occurrences of the given category.
129
130
*```float featureProbability(T feature, K category)``` (*implements*```IFeatureProbability<T, K>.featureProbability```) Returns the probability that the given feature occurs in the given category.
130
131
*```float featureWeighedAverage(T feature, K category)``` Retrieves the weighed average ```P(feature|category)``` with overall weight of ```1.0``` and an assumed probability of ```0.5```. The probability defaults to the overall feature probability.
131
132
*```float featureWeighedAverage(T feature, K category, IFeatureProbability<T, K> calculator)``` Retrieves the weighed average ```P(feature|category)``` with overall weight of ```1.0```, an assumed probability of ```0.5``` and the given object to use for probability calculation.
@@ -158,7 +159,7 @@ Performance improvements, I am currently thinking of:
158
159
The MIT License (MIT)
159
160
------------------
160
161
161
-
Copyright (c) 2012-2014 Philipp Nolte
162
+
Copyright (c) 2012-2017 Philipp Nolte
162
163
163
164
Permission is hereby granted, free of charge, to any person obtaining a copy
164
165
of this software and associated documentation files (the "Software"), to deal
0 commit comments