Updated: 28 November 2026Level: IntermediateReading time: about 10 minutesscikit-learn 1.x · tested Let’s apply Linear Discriminant Analysis with scikit-learn: reduce the Wine dataset from 13 features to 2, visualise it, and compare LDA with PCA for classification. Prerequisites LDA Introduction. Step 1: Data Example import numpy as np from sklearn.datasets …
Read More »LDA – introduction
Updated: 28 November 2026Level: IntermediateReading time: about 7 minutesscikit-learn 1.x · tested Linear Discriminant Analysis (LDA) is a dimensionality reduction method (and classifier) that uses the class labels. Where PCA keeps the directions of greatest variance, LDA keeps the directions that best separate the classes. Prerequisites PCA Introduction. The Idea …
Read More »
Machine Learning Tutorials, Courses and Certifications