Coder Social home page Coder Social logo

angelpatriciads / iris-data-multi-logistic-regression Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 29 KB

Given a dataset with data on the size of the sepals (petals) and the size of the petals (corolla) of 150 irises consisting of three species, namely Iris setosa, Iris versicolor, and Iris virginica. Petal size will be used as a measure of flower classification using multinomial logistic regression.

Jupyter Notebook 100.00%
classification multinomial-logistic-regression

iris-data-multi-logistic-regression's Introduction

Prediction using Decision Boundaries with Multinomial Logistic Regression to Iris Dataset

-- Project Status: Completed

Project Objective

Given a dataset with data on the size of the sepals (petals) and the size of the petals (corolla) of 150 irises consisting of three species, namely Iris setosa, Iris versicolor, and Iris virginica. Petal size will be used as a measure of flower classification using multinomial logistic regression.

Methods Used

  • Multinomial Logistic Regression

Language

  • Python

Module

  • skicit-learn
  • matplotlib
  • pandas
  • numpy

Step-by-step

  1. Change the target variable to int to facilitate where data processing
    • 0 : Iris Setosa
    • 1 : Iris Versicolor
    • 2 : Iris Virginica
  2. Take the petal size column as X data and the flower species column in the code as Y
  3. Divide into training and testing data with a ratio of 3:7
  4. Find the best parameter values with hypertuning for the Multinomial Logistic Regression model
  5. Create a multinomial Logistic Regression model into the MLR variable
  6. Predict the X test data using the MLR model
  7. Obtained an accuracy report of 0.98 so that this model has a fairly high accuracy
  8. Do plotting boundaries decisions
  9. Make predictions with the data in the problem

Getting Started

  1. You can access the raw data here within this repo.
  2. All of the scripts are being kept here.

iris-data-multi-logistic-regression's People

Contributors

angelpatriciads avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.