-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
37 lines (26 loc) · 905 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
NAME
Algorithm::ComplementNB - Complement Naive Bayes Classifier
SYNOPSIS
use Algorithm::ComplementNB;
my $cnb= Algorithm::ComplementNB->new();
$cnb->add_instance(
attributes => {a => 2, b => 3},
label => 'positive'
);
$cnb->add_instance(
attributes => {c => 3, d => 1},
label => 'negative'
);
$cnb->train();
my $score = $cnb->predict(
attributes => {a => 1, b => 1, d => 1, e =>1}
);
DESCRIPTION
This module implements a Complement Naive Bayes. Algorithm::ComplementNB
is a simple CNB, and Algorithm::TWCNB is a Transformed Weight-normalized
version of CNB.
AUTHOR
TAGAMI Yukihiro <[email protected]>
LICENSE
This library is distributed under the term of the MIT license.
<http://opensource.org/licenses/mit-license.php>