Skip to content

Commit 38a4019

Browse files
committed
Remove doctest from linear_discriminant_analysis
1 parent 5328195 commit 38a4019

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: machine_learning/dimensionality_reduction.py

-7
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,6 @@ def linear_discriminant_analysis(
138138
* labels: the class labels of the features
139139
* classes: the number of classes present in the dataset
140140
* dimensions: to filter the projected data for the desired dimension
141-
>>> features = np.array([[1, 2, 3, 4, 5], [2, 3, 4, 5, 6], [3, 4, 5, 6, 7]])
142-
>>> labels = np.array([0, 2, 0, 1, 1])
143-
>>> classes = 3
144-
>>> dimensions = 2
145-
>>> linear_discriminant_analysis(features, labels, classes, dimensions)
146-
array([[0.70710678, 0.70710678, 0.70710678, 0.70710678, 0.70710678],
147-
[3.60806823, 5.10257902, 6.59708982, 8.09160061, 9.58611141]])
148141
"""
149142

150143
# Check if the dimension desired is less than the number of classes

0 commit comments

Comments
 (0)