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/knn.py (5 issues)

1
import sklearn.neighbors as skl_neighbors
0 ignored issues
show
The import sklearn.neighbors 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
3
4
__all__ = ["KNNLearner"]
5
6
7
class KNNLearner(SklLearner):
8
    __wraps__ = skl_neighbors.KNeighborsClassifier
9
    name = 'knn'
10
11
    def __init__(self, n_neighbors=5, metric="euclidean", weights="uniform",
0 ignored issues
show
The argument weights seems to be unused.
Loading history...
The argument n_neighbors seems to be unused.
Loading history...
The argument metric seems to be unused.
Loading history...
12
                 algorithm='auto',
0 ignored issues
show
The argument algorithm seems to be unused.
Loading history...
13
                 preprocessors=None):
14
        super().__init__(preprocessors=preprocessors)
15
        self.params = vars()
16