Skip to content

Commit 46b0279

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

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
@@ -6,6 +6,7 @@
66
Notes:
77
- Each column of the features matrix corresponds to a class item
88
"""
9+
910
"""
1011
Implementation of dimensionality reduction algorithms.
1112
@@ -429,9 +430,7 @@ def test_principal_component_analysis() -> None:
429430
"""Test function for Principal Component Analysis."""
430431
features = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
431432
dimensions = 2
432-
expected_output = np.array(
433-
[[6.92820323, 8.66025404, 10.39230485], [3.0, 3.0, 3.0]]
434-
)
433+
expected_output = np.array([[6.92820323, 8.66025404, 10.39230485], [3.0, 3.0, 3.0]])
435434

436435
output = principal_component_analysis(features, dimensions)
437436
if not np.allclose(expected_output, output):

0 commit comments

Comments
 (0)