From d0f1cc59793aa11a3d37710a98a8cdc4c39b88ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Thu, 10 Mar 2022 14:32:33 +0100 Subject: [PATCH] fix format issue --- .pre-commit-config.yaml | 2 +- mufs/Selection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a87625..b6625e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/ambv/black - rev: 20.8b1 + rev: 22.1.0 hooks: - id: black exclude: ".virtual_documents" diff --git a/mufs/Selection.py b/mufs/Selection.py index 2077cec..d020f75 100755 --- a/mufs/Selection.py +++ b/mufs/Selection.py @@ -128,7 +128,7 @@ class MUFS: k = len(features) for pair in list(combinations(features, 2)): rff += self._compute_su_features(*pair) - return k * rcf / sqrt(k + (k ** 2 - k) * rff) + return k * rcf / sqrt(k + (k**2 - k) * rff) def cfs(self, X, y): """Correlation-based Feature Selection