Back to Browse

Linear Discriminant Analysis using Scikit-Learn

440 views
Aug 16, 2024
19:41

๐‹๐ข๐ง๐ž๐š๐ซ ๐ƒ๐ข๐ฌ๐œ๐ซ๐ข๐ฆ๐ข๐ง๐š๐ง๐ญ ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ (๐‹๐ƒ๐€) is a supervised machine learning algorithm. This approach is used in machine learning to solve classification problems with two or more classes. ๐‹๐ƒ๐€ fits a Gaussian density to each class, assuming all classes share the same covariance matrix. I used ๐—ฟ๐—ฎ๐—ถ๐˜€๐—ถ๐—ป.๐˜…๐—น๐˜€๐˜… dataset for this example. The dataset is available in the repository. It contains 2 types of raisins: ๐—ž๐—ฒ๐—ฐ๐—ถ๐—บ๐—ฒ๐—ป & ๐—•๐—ฒ๐˜€๐—ป๐—ถ. ๐‘ฎ๐’Š๐’•๐‘ฏ๐’–๐’ƒ ๐’‚๐’…๐’…๐’“๐’†๐’”๐’”: https://github.com/randomaccess2023/MG2023/tree/main/Video%2072 ๐™„๐™ข๐™ฅ๐™ค๐™ง๐™ฉ๐™–๐™ฃ๐™ฉ ๐™ฉ๐™ž๐™ข๐™š๐™จ๐™ฉ๐™–๐™ข๐™ฅ๐™จ: 00:47 - Import required libraries 01:51 - Load ๐ซ๐š๐ข๐ฌ๐ข๐ง dataset 03:41 - Perform preprocessing 05:19 - Separate features and classes 05:57 - Split the dataset 07:18 - Apply ๐‹๐ข๐ง๐ž๐š๐ซ ๐ƒ๐ข๐ฌ๐œ๐ซ๐ข๐ฆ๐ข๐ง๐š๐ง๐ญ ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ 11:55 - Plot ๐œ๐จ๐ง๐Ÿ๐ฎ๐ฌ๐ข๐จ๐ง_๐ฆ๐š๐ญ๐ซ๐ข๐ฑ 18:28 - Print ๐œ๐ฅ๐š๐ฌ๐ฌ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง_๐ซ๐ž๐ฉ๐จ๐ซ๐ญ #lineardiscriminantanalysis #LDA #datascience #machinelearning #sklearn #scikitlearn #pythonprogramming #python #jupyter #jupyternotebook #raisindataset #supervisedlearning #supervisedclassification

Download

1 formats

Video Formats

360pmp425.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Linear Discriminant Analysis using Scikit-Learn | NatokHD