What is Quadratic Discriminant Analysis in shogun?

This recipe explains what is Quadratic Discriminant Analysis in shogun.

Recipe Objective

This recipe explains what Quadratic Discriminant Analysis is.
For more related projects-
Project 1
Project 2

Access Face Recognition Project Code using Facenet in Python

Quadratic Discriminant Analysis

We use quadratic discriminant analysis (QDA) to split measurements of two or more classes of objects by a quadric surface. For QDA, the class label 'y' is assumed to be quadratic in the measurements of observations 'X'.

x_train = RealFeatures(feats_train)
x_test = RealFeatures(feats_test)
y_train = MulticlassLabels(labels_train)
y_test = MulticlassLabels(labels_test)

z = QDA(x_train, y_train, 0.0001, True)
z.train()
predict = z.apply_multiclass(x_test)

eval = MulticlassAccuracy()
accuracy = eval.evaluate(predict, y_test)

What Users are saying..

profile image

Jingwei Li

Graduate Research assistance at Stony Brook University
linkedin profile url

ProjectPro is an awesome platform that helps me learn much hands-on industrial experience with a step-by-step walkthrough of projects. There are two primary paths to learn: Data Science and Big Data.... Read More

Relevant Projects

PyTorch Project to Build a LSTM Text Classification Model
In this PyTorch Project you will learn how to build an LSTM Text Classification model for Classifying the Reviews of an App .

Credit Card Fraud Detection as a Classification Problem
In this data science project, we will predict the credit card fraud in the transactional dataset using some of the predictive models.

Deploying Machine Learning Models with Flask for Beginners
In this MLOps on GCP project you will learn to deploy a sales forecasting ML Model using Flask.

Build Time Series Models for Gaussian Processes in Python
Time Series Project - A hands-on approach to Gaussian Processes for Time Series Modelling in Python

Deep Learning Project for Time Series Forecasting in Python
Deep Learning for Time Series Forecasting in Python -A Hands-On Approach to Build Deep Learning Models (MLP, CNN, LSTM, and a Hybrid Model CNN-LSTM) on Time Series Data.

Multi-Class Text Classification with Deep Learning using BERT
In this deep learning project, you will implement one of the most popular state of the art Transformer models, BERT for Multi-Class Text Classification

End-to-End ML Model Monitoring using Airflow and Docker
In this MLOps Project, you will learn to build an end to end pipeline to monitor any changes in the predictive power of model or degradation of data.

Locality Sensitive Hashing Python Code for Look-Alike Modelling
In this deep learning project, you will find similar images (lookalikes) using deep learning and locality sensitive hashing to find customers who are most likely to click on an ad.

Tensorflow Transfer Learning Model for Image Classification
Image Classification Project - Build an Image Classification Model on a Dataset of T-Shirt Images for Binary Classification

AWS MLOps Project for Gaussian Process Time Series Modeling
MLOps Project to Build and Deploy a Gaussian Process Time Series Model in Python on AWS