This study aims to classify the types of Iris flowers based on morphological features using the Naive Bayes algorithm. Iris flowers consist of three types, namely Iris-Setosa, Iris-Versicolor, and Iris-Virginica, which can be distinguished based on the length and width of the petals as well as the length and width of the sepals. The dataset used in this research is the Iris dataset, which contains information on four morphological features from these three types of flowers. The Naive Bayes algorithm was chosen because of its advantages in performing probability-based classification in a simple, fast, and effective manner, especially for data with independent features. The research stages include data collection, feature extraction, splitting the data into training and testing sets, training the model using the Naive Bayes algorithm, and testing the model to evaluate classification accuracy. The results of the study show that the Naive Bayes model is able to classify the test data accurately, with the highest probability value obtained in the Iris-Versicolor class, with a value of P(Versicolor│X)=1. This indicates that the test data has the highest similarity to that species compared to the other two species. Thus, the Naive Bayes algorithm proves effective for classifying types of Iris flowers based on their morphological features.
Copyrights © 2025