Question: Python Anna plans to adopt logistic regression for her classification. Which of the following will allow her to train the logistic regression model given the
Python

Anna plans to adopt logistic regression for her classification. Which of the following will allow her to train the logistic regression model given the training data? O from sklearn. linear model import LogisticRegression clf=LogisticRegression () clf . fit transform (X train, y train) from sklearn. linear model import LogisticRegression clf=LogisticRegression () clf . predict (X_train, y_train) O from sklearn. linear model import LogisticRegression clf=LogisticRegression () clf . fit (X_train, y_train) O from sklearn. linear model import LogisticRegression clf=LogisticRegression () clf . train (X_ train, y train)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
