Practical-4: Write A Python Program To Perform Multiclass Classification On Iris Dataset
Practical-4: Write A Python Program To Perform Multiclass Classification On Iris Dataset
PRACTICAL-4
Aim : Write a python program to perform multiclass classification on iris dataset.
Below are the Important Steps required for any classification Process:
1. Understand the Problem
2. Collect and Prepare the Data
3. Preprocess the Data
4. Split the Dataset
5. Choose a Classification Algorithm
6. Train the Model
7. Evaluate the Model
8. Optimize the Model
9. Deploy the Model
10. Monitor and Maintain
Code :
# Import necessary libraries
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report, accuracy_score
# Make predictions
y_pred = knn.predict(X_test)