Machine Learning, Single Layer Perceptron, Neural Networks, Matlab.
preprocess the Iris dataset: load fisheriris.mat X = meas; y = grp2idx(species); % Normalize the features X = (X - mean(X)) ./ std(X); % One-hot encoding of the labels Y = ind2vec(y')'; 2. Initialize the weights and biases: n_features = size(X, 2); n_classes = length(unique(y)); W =