Skip to content

Commit

Permalink
Correct gini coefficient mathcal formula
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub authored Aug 1, 2021
1 parent 85c8b78 commit d078efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/nn/functional/gini.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def gini(w: torch.Tensor) -> torch.Tensor:
.. math::
\mathcal{L}_\textrm{Gini}^i = \sum_j^n \sum_{j'}^n \frac{|w_{ij}
- w_{ij'}|}{(2 n^2 - n)\bar{w_i}}
- w_{ij'}|}{2 (n^2 - n)\bar{w_i}}
And returns an average over all rows.
Expand Down

0 comments on commit d078efe

Please sign in to comment.