Skip to content

Commit 5509e7d

Browse files
committed
Add links to Wikipedia
1 parent 0eb4e10 commit 5509e7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: machine_learning/dimensionality_reduction.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def covariance_between_classes(features: np.ndarray, labels: np.ndarray, classes
5454

5555

5656
def PCA(features: np.ndarray, dimensions: int) -> np.ndarray:
57-
"""Principal Component Analysis \n
57+
"""Principal Component Analysis. \n
58+
For more details, see here: https://en.wikipedia.org/wiki/Principal_component_analysis \n
5859
Parameters: \n
5960
* features: the features extracted from the dataset
6061
* labels: the class labels of the features
@@ -81,8 +82,9 @@ def PCA(features: np.ndarray, dimensions: int) -> np.ndarray:
8182

8283

8384
def LDA(features: np.ndarray, labels: np.ndarray, classes: int, dimensions: int) -> np.ndarray:
84-
"""Linear Discriminant Analysis \n
85-
Parameters: \n
85+
"""Linear Discriminant Analysis. \n
86+
For more details, see here: https://en.wikipedia.org/wiki/Linear_discriminant_analysis \n
87+
Parameters: \n
8688
* features: the features extracted from the dataset
8789
* labels: the class labels of the features
8890
* classes: the number of classes present in the dataset

0 commit comments

Comments
 (0)