Skip to content

Commit 4c7c58f

Browse files
committed
fixed multiassessment arguments
1 parent 0164660 commit 4c7c58f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/tips/contributing.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Many thanks to all existing and future contributors for their participation.
1010

1111
## Workflow
1212
The typical workflow for `pygrank` contributions comprises the following steps:
13+
1314
1. **Fork** the master branch from the GitHub repository.
1415
2. **Clone** the fork locally (recommended: also copy the *pre-commit* file to *.git/hooks*).
1516
3. **Edit** the library.
@@ -22,8 +23,8 @@ such as conda or venv (provided by PyCharm).
2223
The environment should come with Python 3.9 or later installed.
2324
Make sure that both base library dependencies
2425
`networkx`, `numpy`, `scipy`, `sklearn` (scikit-learn), `wget`,
25-
as well as `tensorflow`, `torch`, `matvec`, `torch-sparse`
26-
(the last three needed support
26+
as well as `tensorflow`, `torch`, `matvec`, `torch-sparse`, `dask[distributed]`
27+
(the last five are needed support
2728
unit testing for the respective backends)
2829
are installed and upgraded to their latest versions.
2930

@@ -80,7 +81,7 @@ in the same module you can safely import classes from `pygrank.measures`.
8081
**Which classes to subclass?**
8182

8283
To create a new node ranking algorithm, you are required to subclass one of the
83-
classes found in `pygrank.algorithms.filters.abstract_filters`:
84+
classes found in `pygrank.algorithms.filters.abstract`:
8485
* `GraphFilter` identifies generic graph filters (is subclassed by the next two)
8586
* `RecursiveGraphFilter` identifies graph filters that can be described with a recursive formula
8687
* `ClosedFormGraphFilter` identifies graph filers that can be described in closed form

pygrank/measures/multigroup/unsupervised.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class MultiUnsupervised:
2-
def __init__(self, metric_type, **kwargs):
3-
self.metric = metric_type(**kwargs)
2+
def __init__(self, metric_type, *args, **kwargs):
3+
self.metric = metric_type(*args, **kwargs)
44

55
def evaluate(self, scores):
66
evaluations = [

0 commit comments

Comments
 (0)