Passed
Pull Request — main (#5)
by Mohammad
04:04
created

PAClf.__init__()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
ccs 1
cts 2
cp 0.5
rs 10
c 0
b 0
f 0
cc 1
nop 2
crap 1.125
1 1
from sklearn.linear_model import PassiveAggressiveClassifier
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2 1
from .meta_sklearn_clf import MetaSkLearnClf
3
4
5 1
class PAClf(MetaSkLearnClf):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
6 1
    def __init__(self, **kwargs):
7
        super().__init__(classifier_instance=PassiveAggressiveClassifier(max_iter=1000, loss='squared_hinge'), **kwargs)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (120/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
8