Exploring Iris Dataset: Attribute Analysis and Prediction

Exploring Iris Dataset: Attribute Analysis and Prediction
Slide Note
Embed
Share

This analysis explores the Iris dataset containing 150 samples with continuous features like Sepal Length, Sepal Width, Petal Length, and Petal Width, classified into Setosa, Versicolor, and Virginica species. The focus is on determining the best attributes to predict the species, evaluating the information content, and comparing algorithm performance using Decision Tree and SVM classifiers. Visualizations and correlations are also discussed to gain insights into the dataset.

  • Iris Dataset
  • Attribute Analysis
  • Prediction
  • Machine Learning
  • Data Visualization

Uploaded on Feb 17, 2025 | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Iris Dataset Question Samuel Cunningham Mingdi Gao

  2. The Data 150 samples Sepal Length and Width (Continuous) Petal Length and Width (Continuous) The species (Setosa, Versicolor, Virginica)

  3. What to find? Which two attributes would be best to use to predict the species? Do these two attributes contain enough information that all other attributes can be ignored? 2 dimensional dataset linearly separable with two lines)

  4. Algorithms Decision Tree DecisionTreeClassifier Gini and Information Gain SVM Scikit learn s nuSVC Kernal: rbf

  5. Training and Prediction results Decision Tree: Recall = 1.0 Precision = 1.0 SVM: Recall = 0.97 Precision = 0.98

  6. Tree Visualization(Info Gain) X[3](Petal Width) appears as the best-split-feature and appear the most. X[2] also appear 3 time while X[1] appear only once and X[0] is not even here.

  7. Tree Visualization(Gini) X[2](Petal Length) appears as the best-split-feature and appear the most. X[3] also appear 3 time while X[0] appear only once and X[0] is not even here.

  8. Attribute Correlation Covariance of two variables divided by the product of their standard deviations. (Pearson product-moment correlation coefficient)

  9. Sepal Length vs. Sepal Width SVM Tree Actual Predicted

  10. Petal Length vs. Petal Width SVM Tree Actual Predicted

  11. Petal Length vs. Sepal Length SVM Tree Actual Predicted

  12. Petal Width vs. Sepal Length SVM Tree Actual Predicted

  13. Separate Attributes Petal Width vs. Sepal Width Petal Length vs. Sepal Length Petal Length vs. Petal Width

  14. Kaggle visualizations https://www.kaggle.com/jrskane/d/uciml/iris/iris-practice

  15. Kaggle visualizations https://www.kaggle.com/benhamner/d/uciml/iris/python-data-visualizations

  16. Conclusion Petal Width / Petal Length Contain the most information Not exactly linearly separable two stages (lines)

  17. Challenges The Question Python Visualizations

  18. Reference http://scikit-learn.org/stable/modules/tree.html#tre http://stackoverflow.com/questions/10570042/visualizing-a- decision-tree-example-f rom-scikit-lea

More Related Content