Skip to content

Commit 6c0c53f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e6a1bb1 commit 6c0c53f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

machine_learning/dimensionality_reduction.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Notes:
88
- Each column of the features matrix corresponds to a class item
99
"""
10+
1011
"""
1112
Implementation of dimensionality reduction algorithms.
1213
@@ -431,9 +432,7 @@ def test_principal_component_analysis() -> None:
431432
"""Test function for Principal Component Analysis."""
432433
features = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
433434
dimensions = 2
434-
expected_output = np.array(
435-
[[6.92820323, 8.66025404, 10.39230485], [3.0, 3.0, 3.0]]
436-
)
435+
expected_output = np.array([[6.92820323, 8.66025404, 10.39230485], [3.0, 3.0, 3.0]])
437436

438437
output = principal_component_analysis(features, dimensions)
439438
if not np.allclose(expected_output, output):

0 commit comments

Comments
 (0)