From 59c86b8e53415938dd169b84fec2b52a6c15c6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Fri, 4 Jun 2021 18:12:13 +0200 Subject: [PATCH] Add author method in comments --- mfs/Metrics.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mfs/Metrics.py b/mfs/Metrics.py index 13ecf24..8e4cce9 100755 --- a/mfs/Metrics.py +++ b/mfs/Metrics.py @@ -51,6 +51,9 @@ class Metrics: def _compute_mi_cc(x, y, n_neighbors): """Compute mutual information between two continuous variables. + # Author: Nikolay Mayorov + # License: 3-clause BSD + Parameters ---------- x, y : ndarray, shape (n_samples,) @@ -68,10 +71,10 @@ class Metrics: Notes ----- - True mutual information can't be negative. If its estimate by a numerical - method is negative, it means (providing the method is adequate) that the - mutual information is close to 0 and replacing it by 0 is a reasonable - strategy. + True mutual information can't be negative. If its estimate by a + numerical method is negative, it means (providing the method is + adequate) that the mutual information is close to 0 and replacing it by + 0 is a reasonable strategy. References ----------