Skip to content

Commit bed9512

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

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

machine_learning/dimensionality_reduction.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,7 @@ def test_principal_component_analysis() -> None:
418418
"""Test function for Principal Component Analysis."""
419419
features = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
420420
dimensions = 2
421-
expected_output = np.array(
422-
[[6.92820323, 8.66025404, 10.39230485], [3.0, 3.0, 3.0]]
423-
)
421+
expected_output = np.array([[6.92820323, 8.66025404, 10.39230485], [3.0, 3.0, 3.0]])
424422

425423
output = principal_component_analysis(features, dimensions)
426424
if not np.allclose(expected_output, output):

0 commit comments

Comments
 (0)