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.
- Multinomial Logistic Regression
- Python
- skicit-learn
- matplotlib
- pandas
- numpy
- Change the target variable to int to facilitate where data processing
- 0 : Iris Setosa
- 1 : Iris Versicolor
- 2 : Iris Virginica
- Take the petal size column as X data and the flower species column in the code as Y
- Divide into training and testing data with a ratio of 3:7
- Find the best parameter values with hypertuning for the Multinomial Logistic Regression model
- Create a multinomial Logistic Regression model into the MLR variable
- Predict the X test data using the MLR model
- Obtained an accuracy report of 0.98 so that this model has a fairly high accuracy
- Do plotting boundaries decisions
- Make predictions with the data in the problem