Passed
Push — main ( 081b85...deff66 )
by Mohammad
02:40 queued 12s
created

tracking_policy_agendas.classifiers.lasso_clf   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A LassoClf.__init__() 0 2 1
1 1
from sklearn.linear_model import SGDClassifier
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2 1
from .meta_sklearn_clf import MetaSkLearnClf
3
4
5 1
class LassoClf(MetaSkLearnClf):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
6 1
    def __init__(self, **kwargs):
7
        super().__init__(classifier_instance=SGDClassifier(loss='modified_huber', penalty='l1'), **kwargs)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (106/100).

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

Loading history...
8