Question 24
Consider the following Python code snippet that demonstrates the use of SGDClassifier from scikit-learn:
clf = SGDClassifier(loss="hinge", penalty="l2", max_iter=500, warm_start=True)clf.fit(X_train,y_train)Choose the correct statements:
It applies lasso penalty.
The training may terminate after 499 iterations or lesser
the classifier represents a perceptron model
The classifier’s model parameters will initialized with parameters learnt from previous call to fit() function, if the same object is trained/fitted multiple times on new data.