GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (4082)

Orange/classification/tree.py (9 issues)

1
import sklearn.tree as skl_tree
0 ignored issues
show
The import sklearn.tree could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
2
from Orange.classification import SklLearner, SklModel
3
from Orange.preprocess import Continuize, RemoveNaNColumns, SklImpute
4
5
__all__ = ["TreeLearner"]
6
7
8
class TreeClassifier(SklModel):
9
    pass
10
11
12
class TreeLearner(SklLearner):
13
    __wraps__ = skl_tree.DecisionTreeClassifier
14
    __returns__ = TreeClassifier
15
    name = 'tree'
16
    preprocessors = [RemoveNaNColumns(),
17
                     SklImpute(),
18
                     Continuize()]
19
20
    def __init__(self, criterion="gini", splitter="best", max_depth=None,
0 ignored issues
show
The argument splitter seems to be unused.
Loading history...
The argument criterion seems to be unused.
Loading history...
The argument max_depth seems to be unused.
Loading history...
21
                 min_samples_split=2, min_samples_leaf=1,
0 ignored issues
show
The argument min_samples_split seems to be unused.
Loading history...
The argument min_samples_leaf seems to be unused.
Loading history...
22
                 max_features=None,
0 ignored issues
show
The argument max_features seems to be unused.
Loading history...
23
                 random_state=None, max_leaf_nodes=None,
0 ignored issues
show
The argument random_state seems to be unused.
Loading history...
The argument max_leaf_nodes seems to be unused.
Loading history...
24
                 preprocessors=None):
25
        super().__init__(preprocessors=preprocessors)
26
        self.params = vars()
27
        self.supports_weights = True
28