diff --git a/.codacy.yml b/.codacy.yml index 8d3d234..2e7468d 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -1,6 +1,8 @@ # To validate the contents of your configuration file # run the following command in the folder where the configuration file is located: # codacy-analysis-cli validate-configuration --directory `pwd` +# To analyse, run: +# codacy-analysis-cli analyse --tool remark-lint --directory `pwd` --- engines: pylintpython3: @@ -10,4 +12,4 @@ engines: exclude_paths: - config/engines.yml exclude_paths: - - '**/tests/**' + - 'tests/**' diff --git a/RELEASE.md b/RELEASE.md index c3ff835..09ae177 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -3,8 +3,8 @@ ## Release 0.1.1-dev0 ### Includes - - Minor bugfixes. - - 100% line coverage. +- Minor bugfixes. +- 100% line coverage. ## Release 0.1.0-dev0 diff --git a/prototorch/modules/prototypes.py b/prototorch/modules/prototypes.py index 384e62b..78d9349 100644 --- a/prototorch/modules/prototypes.py +++ b/prototorch/modules/prototypes.py @@ -2,11 +2,8 @@ import warnings -import numpy as np import torch -from prototorch.functions.competitions import wtac -from prototorch.functions.distances import sed from prototorch.functions.initializers import get_initializer @@ -55,7 +52,7 @@ class Prototypes1D(_Prototypes): :math:`(\text{total_prototypes}, \text{prototype_dimension})`. prototype_labels: the non-learnable labels of the prototypes. - Examples:: + Examples: >>> p = Prototypes1D(input_dim=20, nclasses=10) >>> input = torch.randn(128, 20)