To develop a neural network classification model for the given dataset.
The Iris dataset consists of 150 samples from three species of iris flowers (Iris setosa, Iris versicolor, and Iris virginica). Each sample has four features: sepal length, sepal width, petal length, and petal width. The goal is to build a neural network model that can classify a given iris flower into one of these three species based on the provided features.
Include the neural network model diagram.
Write your own steps
class IrisClassifier(nn.Module):
def __init__(self, input_size):
super(IrisClassifier, self).__init__()
#Include your code here
def forward(self, x):
#Include your code here
# Initialize the Model, Loss Function, and Optimizer
def train_model(model, train_loader, criterion, optimizer, epochs):
#Include your code hereInclude screenshot of the dataset.
Include confusion matrix here
Include classification report here
Include your sample input and output here
Include your result here