Skip to content

Commit

Permalink
fixed multiassessment arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
maniospas committed Jun 12, 2024
1 parent 0164660 commit 4c7c58f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions docs/tips/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Many thanks to all existing and future contributors for their participation.

## Workflow
The typical workflow for `pygrank` contributions comprises the following steps:

1. **Fork** the master branch from the GitHub repository.
2. **Clone** the fork locally (recommended: also copy the *pre-commit* file to *.git/hooks*).
3. **Edit** the library.
Expand All @@ -22,8 +23,8 @@ such as conda or venv (provided by PyCharm).
The environment should come with Python 3.9 or later installed.
Make sure that both base library dependencies
`networkx`, `numpy`, `scipy`, `sklearn` (scikit-learn), `wget`,
as well as `tensorflow`, `torch`, `matvec`, `torch-sparse`
(the last three needed support
as well as `tensorflow`, `torch`, `matvec`, `torch-sparse`, `dask[distributed]`
(the last five are needed support
unit testing for the respective backends)
are installed and upgraded to their latest versions.

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

To create a new node ranking algorithm, you are required to subclass one of the
classes found in `pygrank.algorithms.filters.abstract_filters`:
classes found in `pygrank.algorithms.filters.abstract`:
* `GraphFilter` identifies generic graph filters (is subclassed by the next two)
* `RecursiveGraphFilter` identifies graph filters that can be described with a recursive formula
* `ClosedFormGraphFilter` identifies graph filers that can be described in closed form
Expand Down
4 changes: 2 additions & 2 deletions pygrank/measures/multigroup/unsupervised.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class MultiUnsupervised:
def __init__(self, metric_type, **kwargs):
self.metric = metric_type(**kwargs)
def __init__(self, metric_type, *args, **kwargs):
self.metric = metric_type(*args, **kwargs)

def evaluate(self, scores):
evaluations = [
Expand Down

0 comments on commit 4c7c58f

Please sign in to comment.