Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit 7df8b14

Browse files
committed
RC v1.0.5
Updated pom & doc
1 parent 4b10371 commit 7df8b14

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Then, treat it as any other dependency.
2626
<dependency>
2727
<groupId>com.github.ptnplanet</groupId>
2828
<artifactId>Java-Naive-Bayes-Classifier</artifactId>
29-
<version>1.0.4</version>
29+
<version>1.0.5</version>
3030
</dependency>
3131
```
3232

@@ -124,8 +124,9 @@ The abstract ```Classifier<T, K>``` serves as a base for the concrete ```BayesCl
124124
* ```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.
125125
* ```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.
126126
* ```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.
129130
* ```float featureProbability(T feature, K category)``` (*implements* ```IFeatureProbability<T, K>.featureProbability```) Returns the probability that the given feature occurs in the given category.
130131
* ```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.
131132
* ```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:
158159
The MIT License (MIT)
159160
------------------
160161

161-
Copyright (c) 2012-2014 Philipp Nolte
162+
Copyright (c) 2012-2017 Philipp Nolte
162163

163164
Permission is hereby granted, free of charge, to any person obtaining a copy
164165
of this software and associated documentation files (the "Software"), to deal

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.ptnplanet</groupId>
88
<artifactId>Java-Naive-Bayes-Classifier</artifactId>
9-
<version>1.0.4</version>
9+
<version>1.0.5</version>
1010

1111
<dependencies>
1212
<dependency>

0 commit comments

Comments
 (0)