๐๐ข๐ง๐๐๐ซ ๐๐ข๐ฌ๐๐ซ๐ข๐ฆ๐ข๐ง๐๐ง๐ญ ๐๐ง๐๐ฅ๐ฒ๐ฌ๐ข๐ฌ (๐๐๐) 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