Code Monkey home page Code Monkey logo

mehboobali98 / iris-classification-using-svms Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 1.34 MB

The popular IRIS dataset is used for the training of linear and non-linear SVM models. The hyper-parameters are fine-tuned of the models are fine-tuned using K-Fold Cross-Validation and GridSearch to improve model performance.

Jupyter Notebook 100.00%
iris iris-dataset iris-classification svm svm-classifier linear-svm non-linear-svm classification machine-learning scikit-learn

iris-classification-using-svms's Introduction

IRIS Plant classification using Support Vector Machines

Problem Statement

The popular IRIS dataset is used for training of linear and non-linear SVM models. The hyper-parameters are fine-tuned of the models are fine-tuned using K-Fold Cross Validation and GridSearch to improve model performance.

Data Set

The dataset is made of examples of irises, each represented with a feature vector of dimension 4. The examples belong to one of 3 categories (setosa, versicolor, and virginica). The feature vectors contain the width and length of the sepal and of the petals.

Data Set Characteristics:

  • Number of Instances: 150 (50 in each of three classes)
  • Number of Attributes: 4 numeric, predictive attributes and the class
  • Attribute Information:
    • sepal length in cm
    • sepal width in cm
    • petal length in cm
    • petal width in cm
    • class:
      • Iris-Setosa
      • Iris-Versicolour
      • Iris-Virginica

Implementation

  • The Scikit-learn implementation of linear and non-linear SVM has been used.
  • SVM have hyper-parameters which need to be fined tuned for better model performance. The fine-tuning was done using:
    • K-Fold Cross Validation
    • Grid Search

Linear SVM

Decision Boundary

The Fig. below shows the decision boundary obtained using Linear SVM.

Results

The Fig. below shows the cross-validation accuracy of Linear SVM.

Non-Linear SVM

Decision Boundary

The Fig. below shows the decision boundary obtained using Linear SVM.

Results

Detailed results have been provided in the Report.pdf file.

The Fig. below shows the cross-validation accuracy of Linear SVM.

Frameworks Used

  • Scikit-learn

Directory Structure

📦IRIS-classification-using-SVMs
┣ 📂Documents
┃ ┣ 📜Report.pdf
┃ ┗ 📜Task Description.docx
┣ 📂Resources
┃ ┣ 📜linear-svm-acc.PNG
┃ ┣ 📜linear-svm-db.PNG
┃ ┣ 📜non-linear-svm-acc.PNG
┃ ┗ 📜non-linear-svm-db.PNG
┣ 📜Linear_SVM.ipynb
┣ 📜Non-Linear_SVC.ipynb
┗ 📜README.md

iris-classification-using-svms's People

Contributors

mehboobali98 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.