Skip to content

Radhika02005/LDA_Training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

LDA_Training

Linear Discriminant Analysis (LDA) for Classification

Overview

This project implements Linear Discriminant Analysis (LDA) to classify samples as "Good" or "Bad" based on sensor readings. The dataset is preprocessed, normalized, and projected onto an LDA component for visualization and analysis.

Features

•Data Preprocessing: Handles dataset loading, balancing, and normalization.

•LDA Implementation: Uses sklearn.discriminant_analysis.LinearDiscriminantAnalysis.

•Visualization: Generates histograms to visualize class separation.

•Feature Importance Analysis: Determines feature contributions using LDA coefficients.

Installation

Install dependencies using:

pip install pandas numpy matplotlib scikit-learn

Usage

1.Load dataset and assign labels based on conditions.

2.Normalize features using StandardScaler.

3.Perform LDA and project data onto a single component.

4.Visualize results using histograms.

5.Analyze feature contributions using LDA coefficients.

Expected Output

Histogram Plot: Displays class separation.

Feature Importance Table: Ranks feature contributions.

License

Open-source under the MIT License. Created by Radhika Goel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published