This project involves implementing Linear Discriminant Analysis (LDA) and Quadratic Discriminant Analysis (QDA) classifiers in Google Colab, using the Iris dataset as the basis for evaluation. The implementation includes data normalization, training, testing, and accuracy measurement.
The Iris dataset was divided into training and testing sets to evaluate the performance of the classifiers. Data normalization was applied before training and classification to ensure that all features contribute equally.
- Implemented the Linear Discriminant Analysis (LDA) classifier.
- Trained the LDA classifier on the training set.
- Tested the LDA classifier on the testing set.
- Implemented the Quadratic Discriminant Analysis (QDA) classifier.
- Trained the QDA classifier on the training set.
- Tested the QDA classifier on the testing set.
- Measured the accuracy of both classifiers on the training and testing sets.
- Compared the results to evaluate the effectiveness and generalization capability of each classifier.
The project demonstrates the implementation of LDA and QDA classifiers from scratch. The performance of both classifiers was evaluated on both training and testing sets, providing insights into their accuracy and generalization capabilities. This project showcases the effectiveness of discriminant analysis techniques in classification tasks, emphasizing the importance of data normalization and accurate performance measurement.