AI, Dimensionality Reduction, Machine Learning, Python, Data Science.
data frame in matrix format (150 X 4 matrix in our case) and Y is the transformed dataset (150 X 2 matrix). Please refer to this blog for more details. Pros: 1. Maximizes Class Separation: LDA is designed to maximize the separation between different classes, making it effective for classification