/gaussian-discriminant-analysis

An implementation of GDA with training examples

Primary LanguageJupyter Notebook

Gaussian discriminant analysis

This is a simple implementation of the Gaussian Discriminant Analysis algorithm in Python. It is based on the Wikipedia article on the subject.

Usage

# Create a GDA object
gda = GDA()

# Train the model
gda.fit(X, y)

# Predict the class of a new sample
gda.predict(X_new)

Or, Run the notebook to see the algorithm in action.

Implementation details

You can find the implementation in the gaussian_discriminant_analysis.py file.