Question 9
Imagine you're training a Perceptron using sklearn with the following code:
from sklearn.linear_model import PerceptronX = [[0, 0.5], [1, 1.5], [1, 2], [2, 3]]y = [-1, -1, 1, 1]clf = Perceptron(eta0 = 1, tol=None, shuffle=True, random_state=42)clf.fit(X, y)iterations = clf.n_iter_Given the linearly separable nature of the data, how many iterations would it most likely take for the perceptron to converge? What will be the value of iterations?