You are currently viewing IRIS Dataset
machine learning multiclass classification example

IRIS Dataset

  • The Iris dataset contains the following data
    • 50 samples of 3 different species of iris (150 samples total)
    • Measurements: sepal length, sepal width, petal length, petal width
  • The format for the data: (sepal length, sepal width, petal length, petal width)

Supervised learning on the iris dataset

  • Framed as a supervised learning problem
    • Predict the species of an iris using the measurements
  • Famous dataset for machine learning because prediction is easy

Machine learning terminology

  • Each row is an observation (also known as: sample, example, instance, record)
  • Each column is a feature (also known as: predictor, attribute, independent variable, input, regressor, covariate)

Exploring the Iris dataset

Creating a table like look for our data, with the help of Pandas library.

Next step : Visualization of the features. We will plot the combinations of given features in form of scatter to derive the relationship and correlation between the features.

Observation

we observe that the targets are easily differentiated in the above scatter plot.
Petal length and petal width are suitable attributes they have
the ability to predict the output accurately. We also confirm this by
numerical estimation by finding out the correaltion coefficient r
r is very close to 1 which infers that correlation is very strong.

Observation

here we can distinguish among various targets(species of IRIS flower)
but we observe that there exists certain values that can cause confusion
to identify target 1 and 2 as they readily intermix. The values spread over
a range similar between the two.

Analysis

Observe that among the four plotted scatter plots the second one with feature names as petal width and petal length gives a better picture of the relationship with the Species . This plot also shows a strong relationship. We can understand that petal length and petal width can help to predict the target or Species better.

We can also find the correlation between features and Species with the help of heat map. Here we notice that there is a positive correlation between sepal length, petal length, petal width with the species but sepal width has a negative correlation with the species.

The highest correlation can be observed with respect to petal length and petal width. This can also be seen in the above scatter plots.

This Post Has 58 Comments

  1. I seriously love your site.. Great colors & theme. Did you create this amazing site yourself? Please reply back as I’m hoping to create my own personal blog and would love to find out where you got this from or just what the theme is named. Kudos!

  2. Hairstyles Vip

    Have you ever considered about adding a little bit more than just your articles? I mean, what you say is valuable and all. But just imagine if you added some great visuals or video clips to give your posts more, “pop”! Your content is excellent but with pics and clips, this site could certainly be one of the very best in its field. Awesome blog!

    1. sharma25prianca

      Thanks a lot for the feedback. Your kind words are really appreciated.
      I will certainly work upon your advice and see how I can make it better.
      Thanks again.

  3. Elite Proxy

    I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to design my own blog and would like to find out where u got this from. cheers

  4. Hairstyles Vip

    I抦 not that much of a online reader to be honest but your sites really nice, keep it up! I’ll go ahead and bookmark your website to come back later on. Cheers

  5. I Fashion Styles

    I’m really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one nowadays..

  6. delta 8

    A round of applause for your blog.Really thank you!

  7. I Fashion Styles

    Heya i am for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and aid others like you aided me.

  8. tinyurl.com

    If you would like to grow your know-how just keep visiting this site and be updated with the most up-to-date news posted here.

  9. Deon Lembo

    Thanks for your help and for posting this. It’s been wonderful.

  10. Luciano Ennes

    Thank you for being of assistance to me. I really loved this article.

  11. Josh Carow

    You really helped me by writing this article. I like the subject too.

  12. Kemberly Donofrio

    It would be nice to know more about that. Your articles have always been helpful to me. Thank you!

  13. Nelda Dockery

    Your articles are very helpful to me. May I request more information?

  14. Jorge Lagerstedt

    May I request more information on the subject? All of your articles are extremely useful to me. Thank you!

  15. Inge Sorge

    Thank you for posting such a wonderful article. It helped me a lot and I adore the topic.

  16. Clayton Santerre

    May I request more information on the subject? All of your articles are extremely useful to me. Thank you!

  17. Tommie Mcfarland

    Thank you for your excellent articles. May I ask for more information?

  18. Shanice Exantus

    Can you write more about it? Your articles are always helpful to me. Thank you!

  19. Andre Romelus

    Thank you for posting such a wonderful article. It helped me a lot and I adore the topic.

  20. Chang Ferrusi

    Thanks for your help and for writing this post. It’s been great.

  21. Great ? I should certainly pronounce, impressed with your website. I had no trouble navigating through all tabs and related information ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Reasonably unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your customer to communicate. Nice task..

  22. Thanks a lot for sharing this with all people you actually recognise what you’re talking approximately! Bookmarked. Kindly additionally visit my site =). We will have a link exchange arrangement between us!

  23. Edmond Cepas

    Thank you for writing such an excellent article. It helped me a lot and I love the topic.

  24. I used to be recommended this blog through my cousin. I am now not certain whether or not this publish is written through him as nobody else realize such specific approximately my problem. You’re incredible! Thanks!

  25. Hi my loved one! I wish to say that this article is amazing, nice written and come with approximately all vital infos. I would like to see extra posts like this .

  26. There is no doubt that your post was a big help to me. I really enjoyed reading it.

  27. My brother suggested I might like this web site. He was totally right. This post actually made my day. You can not imagine simply how much time I had spent for this info! Thanks!

  28. Roland Mautner

    Dude these articles have been really helpful to me. They really helped me out.

  29. Keenan Wacyk

    Thank you for providing me with these article examples. May I ask you a question?

  30. Sharen Przewozman

    Thank you for posting such a wonderful article. It helped me a lot and I adore the topic.

  31. Escorts in Delhi

    I have not checked in here for a while as I thought it was getting boring, but the last few posts are good quality so I guess I will add you back to my daily bloglist. You deserve it my friend 🙂

  32. Rateio Concursos

    Great ? I should certainly pronounce, impressed with your web site. I had no trouble navigating through all tabs and related information ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your client to communicate. Nice task..

  33. okmark your weblog and check again here frequently. I’m quite sure I?ll learn many new stuff right here! Best of luck for the next!

  34. Burl Cottrell

    Thanks for writing this article. It helped me a lot and I love the subject.

  35. Amado Stoops

    Your articles are extremely helpful to me. Please provide more information!

  36. Your articles are incredibly helpful to me. Thank you! May I request more information?

  37. Eddie Pfanstiel

    Thank you for posting such a wonderful article. It really helped me and I love the topic.

  38. Maisha Vanzandt

    Thanks for your help and for posting this article. It’s been great.

    1. Priyanka

      Thank you for the feedback. It is highly appreciated.

  39. Hal Gean

    Please tell me more about this. May I ask you a question?

  40. Norma Ovesen

    Thank you for your post. I really enjoyed reading it, especially because it addressed my issue. It helped me a lot and I hope it will also help others.

    1. Priyanka

      Glad to know it resolved your issue. Feedback is highly appreciated.

Leave a Reply