tracking_policy_agendas.classifiers.naive_bayes_clf   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 19
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A GNBClf.__init__() 0 2 1
1
"""
2
Naive Bayes Classifier
3
4
....................................................................................................
5
MIT License
6
Copyright (c) 2021-2023 AUT Iran, Mohammad H Forouhesh
7
Copyright (c) 2021-2022 MetoData.ai, Mohammad H Forouhesh
8
....................................................................................................
9
This module encapsulate the Naive Bayes classifier.
10
"""
11
12 1
from sklearn.naive_bayes import GaussianNB
13 1
from .meta_sklearn_clf import MetaSkLearnClf
14
15
16 1
class GNBClf(MetaSkLearnClf):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
17 1
    def __init__(self, **kwargs):
18
        super().__init__(classifier_instance=GaussianNB(), **kwargs)
19